beginner htaccess question

Okay, I created a new .htaccess file with the following lines to
redirect "index.php" to "/", restarted the webserver and it worked
fine:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.mysite.org/ [R=301,L]

Unfortunately I'm a moron and it was supposed to be mysite.COM and not
mysite.ORG (copy and paste, *sigh*). So now it's redirecting to a
nonexistant address (mysite.org). I've fixed the line and restarted
the web server so that it correctly reads:

RewriteRule ^index\.php$ http://www.mysite.com/ [R=301,L]

But it's still redirecting to mysite.org and I can't get it to
change...

How do I fix this?
rdlowrey [ Sa, 19 April 2008 18:04 ] [ ID #1945803 ]
Webserver » alt.apache.configuration » beginner htaccess question

Vorheriges Thema: Redirect without refetching URL
Nächstes Thema: ssi