Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-24-2009, 01:02 AM   #1
donnie
Confirmed User
 
Join Date: Jan 2003
Posts: 1,630
.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]
donnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-24-2009, 01:06 AM   #2
cezam
Confirmed User
 
Join Date: Jun 2003
Location: CZ, EU
Posts: 1,363
Try

RewriteCond %{HTTP_REFERER} domain1\.com [OR]
RewriteCond %{HTTP_REFERER} domain3\.com
RewriteRule...
__________________
cezam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-24-2009, 01:27 AM   #3
donnie
Confirmed User
 
Join Date: Jan 2003
Posts: 1,630
Quote:
Originally Posted by cezam View Post
Try

RewriteCond %{HTTP_REFERER} domain1\.com [OR]
RewriteCond %{HTTP_REFERER} domain3\.com
RewriteRule...
It's working Thank you so much!!
donnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.