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
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Security and WP

To prevent unauthorized scanning of backup files, scripts, etc.  Add this to your WordPress...

WordPress secure mode

Enjoying the peace of mind running WordPress in secure mode on the new M3XS 5 series...

Wordpress White Screen

Wordpress is one of the most versatile scripts. However due to 3rd party scripts, themes, and...

WordPress Cron-Scheduled Posts

To schedule your posts, add this simple crontab entry to your servers crontab entry:*/1 * * *...

Spam Help

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