Question

.htaccess to Nginx PHPBB Seo Rewrite Mode

  • Posted on October 31, 2014
  • giO89RAsked by giO89R

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.