homepage Welcome to WebmasterWorld Guest from 23.22.59.252
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Change /index.html to / on all directories
bucklersbury

10+ Year Member



 
Msg#: 3214481 posted 10:40 am on Jan 10, 2007 (gmt 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

 

phranque

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



 
Msg#: 3214481 posted 12:20 pm on Jan 10, 2007 (gmt 0)

after the usual bumflufferies you could try:

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

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3214481 posted 1:22 pm on Jan 10, 2007 (gmt 0)

[webmasterworld.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved