How do I do this simple 301 redirect from index.htm to root?

Posted by elliot100 on Stack Overflow See other posts from Stack Overflow or by elliot100
Published on 2010-03-19T13:28:30Z Indexed on 2010/03/19 13:31 UTC
Read the original article Hit count: 317

I've read various reference sites on redirection, and to be honest I understand very little.

I currently have standard WordPress mod_rewrite redirect rules in my .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

(1) Quite a few of my referrers go to a old URL http://www.example.com/index.htm, which gives them an error, and I want them to be redirected to http://www.example.com/

What do I need to do?

© Stack Overflow or respective owner

Related posts about 301-redirect

Related posts about Wordpress