GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   redirecting traffic from a certain domain? (https://gfy.com/showthread.php?t=87190)

XXXPaysiteDesign 11-08-2002 11:18 PM

redirecting traffic from a certain domain?
 
What do I put into htaccess to redirect traffic from a certain domain?

DearAbby 11-08-2002 11:19 PM

Try:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://redirected-domain.com*$ [NC]

XXXPaysiteDesign 11-09-2002 12:23 AM

So would it look like this?

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.sitetoredirect.com$
RewriteCond %{HTTP_REFERER} !^http://sitetoredirect.com$
RewriteCond %{HTTP_REFERER} !^http://www.redirectedhere.com*$ [NC]



????

Splicer 11-09-2002 12:30 AM

I use it this way:

RewriteEngine On
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} ^http://.*domain1.com/* [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*domain2.com/* [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*domain3.com/* [NC]
RewriteRule /* http://www.redirected.com


I'm guessing you'll want to redirect more than one domain soon enough

XXXPaysiteDesign 11-09-2002 12:32 AM

Thanks both of you.


All times are GMT -7. The time now is 10:57 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123