What is WordPress default Apache .htaccess rules?

October 26, 2018

Messed up your WordPress .htaccess file? Here is the default one for most configurations:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
<\/IfModule>
# END WordPress