WordPress default .htaccess
Updated 3 weeks ago
Below, we detail the rules that WordPress generates in the .htaccess file when permalinks are enabled.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressWe can use the same file if we need to analyze an error or issue on our site. As always, remember to make a backup before making any changes.
Was this helpful?
Was this helpful?