Nginx config rule for WordPress
To add rewrite support for WordPress to the standard Nginx configuration file located here: /etc/nginx/nginx.conf
This is used as there is no .htaccess file for Nginx so you enable rewriting with the following.
Paste in the following...
if (!-e $request_filename) {
rewrite ^.* /index.php break;
}
Written by Joe Gardiner
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nginx
Authors
reiaguilera
279.6K
jamesdullaghan
90.19K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#