WordPress default .htaccess
Updated last month
Below, we detail the default contents of the .htaccess file in a new WordPress installation.
# BEGIN WordPress
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]
# END WordPressWe can use the same file if we need to investigate an error or issue on our site. As always, remember to make a backup before making any changes.
Was this helpful?
Was this helpful?