Forum Moderators: phranque
I am having a problem creating a rewrite. I am trying to creat a rewrite that will have index.php. index.htm, index.html and index.html all go to the root url www.xyz. com
I entered:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]
and it works but when I tried to login to my site map generator whic is /sitemap/index.php it will not work with that rewite.
Any ideas?
[edited by: jdMorgan at 2:15 am (utc) on Sep. 8, 2009]
[edit reason] example.com [/edit]
RewriteCond $1 !^sitemap/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]
Jim
But note that you must change the broken pipe "¦" character to a solid pipe character before use; Posting on this forum modified the pipe characters.
See the resources cited in our Apache Forum Charter for more information.
Jim