PDA

View Full Version : htaccess - redir traffic from ONE url only?


GHOST Inc
04-22-2002, 08:19 PM
Hi,<br /><br />i want to redirect traffic from "Site X" to my site to another place, but of course i want all the other traffic to slip throug <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" /> <br /><br />i belive htaccess can do this, but im a butterfingers with scripting <img border="0" title="" alt="[Confused]" src="confused.gif" /> <br /><br />Can somebody give me a solution? <img border="0" title="" alt="[Cool]" src="cool.gif" /> <br /><br />Peace out

PeepNTom
04-22-2002, 08:34 PM
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: fixed;">RewriteCond %{HTTP_REFERER} ^http://.*some-domain.com/.*$ [NC]<br />RewriteRule .* http://www.redirect-location.com/ [R,L]</pre><hr /></blockquote><font size="2" face="Verdana, Arial">

GHOST Inc
04-22-2002, 08:44 PM
Thanks, but it doesent work .. hmm darn! <img border="0" title="" alt="[Frown]" src="frown.gif" /> <br /><br />but thanks for taking time to reply

GHOST Inc
04-22-2002, 08:49 PM
More Info: its a windows 2000 server<br /><br />can htaccess run on that?<br /><br />damn i hate to feel like i know nothing <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" />

PeepNTom
04-22-2002, 09:38 PM
well when requesting help, dont leave out the<br />most important aspects like you did here.<br /><br />I dont think .htaccess is workable on windoz<br />servers, could be wrong? Most likely you will<br />need someone else to help you here or call<br />billy boy himself <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" />

SexySites
04-23-2002, 01:37 AM
are you running apache or IIS?<br /><br />laters,<br />Chris

GHOST Inc
04-23-2002, 05:17 AM
IŽll return when my host reveals what the hell the server is <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" /> <br /><br />thanks for helping <img border="0" alt="[Hi]" title="" src="graemlins/hi.gif" />

WiredGuy
04-23-2002, 05:39 AM
</font><blockquote><font size="1" face="Verdana, Arial">quote:</font><hr /><font size="2" face="Verdana, Arial">Originally posted by GHOST Inc:<br /><strong>IŽll return when my host reveals what the hell the server is <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" /> <br /><br />thanks for helping <img border="0" alt="[Hi]" title="" src="graemlins/hi.gif" /> </strong></font><hr /></blockquote><font size="2" face="Verdana, Arial">You can tell if its Apache by getting an error on your server. Usually the error indicates (404, 501, etc.) that the file was not found and identifies the server as apache 1.1.xx or something like that. If you don't get that, chances are its IIS.<br /><br />WG