WordPress on Nginx server – .htaccess vs. nginx.conf

I have recently changed from Apache to Nginx server and running a WordPress installation that was migrated onto this new Nginx server.

I only just realised that (the server provider forgot to mention) that the .htaccess file is no longer supported and shouldn’t be used with Nginx.

Instead the nginx.conf file should be used. I know I can convert the contents of my current .htaccess file to nginx.conf using one of the convertors, but I don’t even have the nginx.conf file.

Can I just create one?? And If I create one, do I place it into the root where currently my .htaccess file is??

Do I then delete the existing .htaccess file?

How should I go about this?

Read more here: WordPress on Nginx server – .htaccess vs. nginx.conf

Leave a Reply

Your email address will not be published. Required fields are marked *