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 07-17-2010, 03:36 AM   #1
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
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....
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2010, 03:47 AM   #2
CunningStunt
Confirmed User
 
CunningStunt's Avatar
 
Industry Role:
Join Date: Aug 2006
Posts: 5,594
Use Maxmind
CunningStunt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2010, 08:17 AM   #3
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
bump......
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2010, 08:37 AM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,382
Quote:
Originally Posted by klinton View Post
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]
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2010, 11:42 AM   #5
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2010, 02:31 PM   #6
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
bump........
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2010, 06:40 PM   #7
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,382
try enabling multiviews
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2010, 06:52 AM   #8
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,148
Quote:
Originally Posted by klinton View Post
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 cookies cleared!
sarettah is online now   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.