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)
-   -   htacess redirection (https://gfy.com/showthread.php?t=978439)

klinton 07-17-2010 03:36 AM

htacess redirection
 
I would like to redirect all french speaking traffic coming to my domain to some site...WITH EXCEPTION for few referers(that traffic wouldn't be redirected)....how to do this ?

thx....

CunningStunt 07-17-2010 03:47 AM

Use Maxmind :)

klinton 07-17-2010 08:17 AM

bump......:)

fris 07-17-2010 08:37 AM

Quote:

Originally Posted by klinton (Post 17342373)
I would like to redirect all french speaking traffic coming to my domain to some site...WITH EXCEPTION for few referers(that traffic wouldn't be redirected)....how to do this ?

thx....

try this

Code:

RewriteEngine on
RewriteCond %{HTTP:Accept-Language} (fr) [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?allowsite\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?allowsite\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?allowsite\.com/.*$ [NC]
RewriteRule .* http://www.domain.com/redirect-url [R,L]


klinton 07-17-2010 11:42 AM

hmm thx, it looks like that it works, but the small problem is that even with valid referer, it only loads html of site, no images....just like with hotlinking protection, but i have no hotlinking protection in there....

klinton 07-17-2010 02:31 PM

bump........

fris 07-17-2010 06:40 PM

try enabling multiviews

sarettah 07-18-2010 06:52 AM

Quote:

Originally Posted by klinton (Post 17343171)
hmm thx, it looks like that it works, but the small problem is that even with valid referer, it only loads html of site, no images....just like with hotlinking protection, but i have no hotlinking protection in there....

Are the pages you are redirecting to in another folder? and if so, Do you have an htaccess file in the folder that the pages you redirect to are located?

That is the htaccess that would be controlling the pages not the htaccess that did the redirect.


All times are GMT -7. The time now is 01:34 AM.

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