homepage Welcome to WebmasterWorld Guest from 54.167.10.244
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 - redirect depending on referer
humpo




msg:1516349
 8:53 pm on Apr 26, 2005 (gmt 0)

Iíve a site with some mp3ís and everyman and their dog is linking to them. I link to them from two other sites myself.

I would like to have requests for any of the mp3ís not from those two sites redirected to another mp3 which is just a short message telling people which site of mine to visit.

Believe i can do this with .htaccess? any pointers would be appreciated

Cheers

 

jdMorgan




msg:1516350
 10:58 pm on Apr 26, 2005 (gmt 0)

Well, here's a start [google.com]... :)

Jim

humpo




msg:1516351
 11:25 pm on Apr 26, 2005 (gmt 0)

Thanks for pointer Jim.

Had a look through those and am still non the wiser. In fact now iím even more confused.

Can you even do what i want? Redirect a request for one mp3 to another? See examples with mp3's in, but also see a post saying you can't redirect an mp3

Never really got the hang of regular expressions and reading all those examples makes little sense. Can see how some of them work but not how to modify them to make them do exactly as i want.

Guess i'll just rename the files on regular basis.

cheers

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