homepage Welcome to WebmasterWorld Guest from 54.204.58.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
htaccess concern
what is the meaning of this line RewriteRule /*$
steven mheakyle




msg:3170696
 4:37 pm on Nov 28, 2006 (gmt 0)

I saw this in my htaccess what is the meaning of this RewriteRule /*$ [yahoo.com...] [L,R]

what exactly this line do, if i remove this will it harm my website.

thanks

 

MattyUK




msg:3170871
 6:34 pm on Nov 28, 2006 (gmt 0)

As far as I understand it it means:
If / (slash) occurs zero or more times before the end of the url then redirect to [yahoo.com...] and stop processing more rewrite rules.

Since * is a greedy match (i.e. zero or more times) it would probably trigger most if not all the time. So it looks like some friendly fellow has set up a sitewide redirect to yahoo.com.

Does your site work with it in?
Is your site hosted by yahoo.com? Perhaps it is part of a bigger solution from them.

You can always comment out the rule rather than remove it completely. Do this with a # at the start of the line.

#RewriteRule /*$ [yahoo.com...] [L,R]

This would disable that rule without removing it. If everything breaks you can remove the # and go back to how you are now.

Matt

[edited by: MattyUK at 6:37 pm (utc) on Nov. 28, 2006]

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