February 2018
Beginner to intermediate
348 pages
9h 40m
English
WordPress is probably a familiar name to you. As of July 2015, the immensely popular open source blogging application was being used by over 60 million websites worldwide. Powered by PHP and MySQL, it's compatible with Nginx out-of-the-box. Well, this statement would be entirely true if it weren't for rewrite rules. The web application comes with a .htaccess file to be placed at the root of the website:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
This first example is relatively easy to understand and to translate to Nginx. In fact, most of the rewriting process consists ...