Mobile app version of vmapp.org
Login or Join
Rambettina238

: Nginx server - Wordpress - .htaccess I am running an Nginx server with Wordpress installed on it. The Wordpress installation has an .htaccess file in its root. Now I read that Nginx doesn't

@Rambettina238

Posted in: #Cache #Htaccess #Nginx #Server #Wordpress

I am running an Nginx server with Wordpress installed on it. The Wordpress installation has an .htaccess file in its root.

Now I read that Nginx doesn't actually work with .htaccess files and using .htaccess with Nginx is wrong.

What file is then Nginx working with, where can I find this file and what should I do with my current .htaccess file as it has quite a bit of info there.

Is there some kind of converter that could convert my current .htaccess file to the one that Nginx would support?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rambettina238

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kimberly868

Nginx doesn't support htaccess or any other directory level config file, every config rule are stored in nginx.conf file which you can found in conf directory. And every time you add new rule to this file you have to reload it by command nginx -s reload.

You can use this post provided by nginx official site to convert your .htaccess rule to nginx rules and there is also a tool for this you can find here.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme