ScaleScaleScaleScale

Tips / Nginx


Converting .htaccess to Nginx rewrite rules

Converting .htaccess (apache) rewrite rules to Nginx is not a difficult task, however, if you are not good with regular expressions and programming languages it can be hard. First of all, you should read the official documentation about Nginx rewrite rules, those can be found at Nginx.org website.

Having that in mind, if you don’t wanna translate the .htaccess rules to nginx rules manually, there are a few tools we found that can make this process easier and faster:

You should also read this Rewrite Rules articles:

  1. HttpRewriteModule
  2. Converting Rewrite Rules
  3. Like Apache: .htaccess
  4. Apache to Nginx Tips

Have fun!

Popular search terms:

  • convert htaccess to nginx
  • how to convert htaccess redirect to nginx
  • htacces to nginx
  • htaccess apache to nginx convert
profile

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking