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 01-02-2002, 04:47 PM   #1
m0rph3us
Confirmed User
 
Join Date: Mar 2001
Location: Principality of Sealand
Posts: 2,033
htaccess help please =)

I'm trying to redirect all traffic from a certain domain to a specific page on my server. I sort of have an idea of how to go about it but this code works in the exact opposite way. All traffic from domains other than the two listed are redirected to the page.

Code:
RewriteEngine on 
RewriteCond %{HTTP_REFERER} !http://www.site.com.*$ [NC] 
RewriteCond %{HTTP_REFERER} !http://site.com.*$ [NC] 
RewriteRule /* http://www.mydomain.com/dir/  [R,L]
How can i make it work right?

Also this is only for traffic going to the root of the site. In let's say /images/ i DON'T want this htaccess to apply. Is there a code to add that prevents it to apply the rules to all subdirs of root?

Thanks


------------------
ADULTBOUNCER AVS!

* FREE Unlimited Hosting (ANY SIZE VIDEOS ALLOWED!)
* Free Premium Unique Video Content
* Partner Programs to resell your AVS site
* Recurring By-Monthly Payouts
* Multiple Billers


GET STARTED NOW!
m0rph3us is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-02-2002, 04:50 PM   #2
Chris R
Confirmed User
 
Join Date: May 2001
Location: Baltimore, MD USA
Posts: 1,151
I THINK the ! means NOT - try getting rid of it in both places and see what happens.

Like I said - I THINK - I am not sure.

------------------
TopBucks.com - Converting at better than 1:130
David Lace Content - Highest Quality Teen Content
ConversionCash.com - Make Money off your WebTV Traffic
Chris R 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.