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)
-   -   .htaccess question (https://gfy.com/showthread.php?t=929651)

donnie 09-24-2009 01:02 AM

.htaccess question
 
I want to redirect traffic coming from certain URL?s and my .htaccess looks like this:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} domain1\.com/ [NC]
RewriteRule ^$ http://domain2.com [L]

It works and traffic coming from domain1 is redirected to domain2. But how do I add more domains I want to redirect from?
I have tried adding one more line like this but that is not working:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} domain1\.com/ [NC]
RewriteCond %{HTTP_REFERER} domain3\.com/ [NC]
RewriteRule ^$ http://domain2.com [L]

cezam 09-24-2009 01:06 AM

Try

RewriteCond %{HTTP_REFERER} domain1\.com [OR]
RewriteCond %{HTTP_REFERER} domain3\.com
RewriteRule...

donnie 09-24-2009 01:27 AM

Quote:

Originally Posted by cezam (Post 16355577)
Try

RewriteCond %{HTTP_REFERER} domain1\.com [OR]
RewriteCond %{HTTP_REFERER} domain3\.com
RewriteRule...

It's working :) Thank you so much!!


All times are GMT -7. The time now is 04:53 AM.

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