![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: May 2005
Posts: 201
|
.htaccess question for redirecting...
Hi,,
hope to get my answer here. i want to redirected a specific incoming domain by using this code in htaccess: RewriteEngine on RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?other-domain.com/.*$ [NC] RewriteRule .* http://mydomain.com/to-another-page.html [R,L] the problem is that the .htaccess keep loading this rules and the incoming visitor from other-domain.com never see the page... if you can help... thank you ..
__________________
ICQ#267-021-715 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
rockin tha trailerpark
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
|
RewriteEngine on
RewriteCond %{HTTP_HOST} ^fart.com$ [OR] RewriteCond %{HTTP_HOST} ^www.fart.com$ RewriteRule ^(.*)$ http://www.bukkake.com [R=301,L]
__________________
__________ Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz) ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
rockin tha trailerpark
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
|
ahhh i didn't read you need to read the referer.....no clue how to do that, be interested to find out though
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2005
Posts: 201
|
yes... the referer domain must be sent to a different page...
the big problem is that the .htaccess file just load&load&load...
__________________
ICQ#267-021-715 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Sounds like the referrer still lives after your redirect, so you will need to either restrict your RewriteRule (by using something other than .*) or add another RewriteCond to stop the rewrite when the page it's redirected to is hit.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: May 2005
Posts: 201
|
Yeah..Vending machine...
that's exactly what i would like to do : stoping the rewrite when it's redirected.. but how ?
__________________
ICQ#267-021-715 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Try:
Code:
RewriteRule !^/to-another-page.html /to-another-page.html [R,L] Code:
RewriteCond %{REQUEST_URI} !^/to-another-page.html |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: May 2005
Posts: 201
|
i've tried both... but it doesn't work...
__________________
ICQ#267-021-715 |
![]() |
![]() ![]() ![]() ![]() ![]() |