.htaccess to Nginx PHPBB Seo Rewrite Mode

  • Posted 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: (without the converted .htaccess) Here’s the .htaccess I used on Apache:

Any suggestion? Thanks.


Submit an 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.