Forum Moderators: phranque
i use the above code in .htaccess it redirects example.net to http://www.example.net/
is there a way i can redirect /index.php to http://www.example.net/
[edited by: jdMorgan at 2:34 pm (utc) on April 21, 2006]
[edit reason] Example.net. [/edit]
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^example\.net [NC]
RewriteRule (.*) http://www.example.net/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
RewriteRule ^index\.php$ http://www.example.net/ [R=301,L]
If this does not work, then there is some other problem. Examine your server error logs and server access logs, and describe in detail how you tested, what happened, and include any pertinent information from those log files.
Jim