Tutorial Directadmin Nginx how to get URL rewrites and WordPress permalinks

Tutorial Directadmin Nginx how to get URL rewrites and WordPress permalinks, when you install nginx on directadmin after install read more link on wordpress show this error 404 Not Found, now you can use Directadmin+Nginx permalinks on WordPress, Because I use WordPress, The first thing I did was set permalinks to default, and everything show error 404 Not Found.  Nginx does not use, nor recognize .htaccess files, which are imperative to URL rewriting, and therefore permalinks.

but this tutorial is not efficient, because always back to default directadmin + nginx, if you need complete tutorial install directadmin + Nginx + wordpress permalinks for all your domain you can check this Links
How to get URL rewrites with WordPress permalinks working with Directadmin, Custombuild 2.0, and Nginx:
The first thing you need to know is how Directadmin can handles Nginx configuration files. This is pretty simple. It’s done on a per user bases, and the configuration files are located in /usr/local/directadmin/data/users/your-user-directadmin/nginx.conf by default is /usr/local/directadmin/data/users/admin/nginx.conf


my favorite editor nano, or you favorite text editor, to edit the nginx.conf file

you can add this

Be sure to get the semi-colon on the end, it’s important.  Here is what my nginx.conf file looked like after adding the appropriate line:

Once you have made the changes, go ahead and save/close.

Now, re-enable permalinks on your WordPress site and you should now have WordPress Permalinks rewriting URLs properly on your Directadmin / Nginx server.


Leave a Reply

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