Report this

What is the reason for this report?

.htaccess to Nginx PHPBB Seo Rewrite Mode

Posted on October 31, 2014

Hello! I just trasferred everything to DigitalOcean a week ago, 2 wordpress blogs and a phpbb forum and switched from Apache to Nginx. I had no problem to create the proper Server Block to rewrite urls for wordpress, but I’m having some problem with the PHPBB forum. I tried to convert the .htaccess to nginx, but no success. I get 404 Page Not Found.

Here’s the Server Block: http://pastebin.com/1wHL3LcA (without the converted .htaccess) Here’s the .htaccess I used on Apache: http://pastebin.com/8cQLxVsA

Any suggestion? Thanks.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

As far as I know, Apache has mods that Nginx doesn’t. I assume you’d need mod_rewrite, so you’d probably have to write your own or find an Nginx one that’s not in a business environment so someone would share it. Apache is so much simpler in this context, I’d recommend swapping back.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.