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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: