Hi,
I would like my .htaccess file to redirect the following urls to:
http://www.mysite.com/
The urls to redirect are:
http://www.mysite.com/index.php
http://mysite.com
http://mysite.com/index.php
mysite.com
The code below currently redirects http://www.mysite.com/index.php to http://www.mysite.com/ but i think it also redirects any missing (404) page to http://www.mysite.com/ as well... Anyway any help is greatly appreciated
ThanksCode:Options +FollowSymLinks DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.mysite.com/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
Paul


Reply With Quote
Bookmarks