Welcome to WebmasterWorld Guest from 54.166.189.88

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Change /index.html to / on all directories

     
10:40 am on Jan 10, 2007 (gmt 0)

New User

10+ Year Member

joined:Sept 20, 2004
posts:17
votes: 0


Can anyone help me with the 301 rewrite rule which will rewrite index.html to the parent directory on any directory on the domain. I have seen examples for doing this on just the root but I need this site wide.

e.g.

[mydomain.com...]
[mydomain.com...]

to

[mydomain.com...]
[mydomain.com...]

Many Thanks

12:20 pm on Jan 10, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10859
votes: 67


after the usual bumflufferies you could try:

RewriteRule ^(([^/]+/)*)index\.html$ [mydomain.com...] [R=301,L]

1:22 pm on Jan 10, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members