htaccess and WordPress

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

order allow,deny
deny from all

# 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.

Keywords: order, allow, deny, redirect, rewrite
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Protect WordPress Admin

Defeat attacks from eating up your server’s CPU and prevent attackers from getting access...

Spam Help

I would suggest that wordpress users use the following plugins: A) wp_spamfree to keep your blog...

WordPress User Roles

I often get these confused and wanted a quick how to for a self reminder.  Hopefully, this...

WordPress Multisite Help

We highly recommend performing a back up of your site and ALL files PRIOR to creating your...

Plugin Malfunction

You added, upgraded, removed, activated or other wise modified a WordPress plugin and now you...