M3Server Technical Blog WordPress wordpress default htaccess setup

wordpress default htaccess setup



We recommend the following to be included on your .htaccess file.

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

This provides basic URL rewriting for WordPress features, like pretty URLs.

m3server.com – hardworking people.  It’s not just powerful servers.