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)
-   -   htaccess help please =) (https://gfy.com/showthread.php?t=45246)

m0rph3us 01-02-2002 04:47 PM

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!

Chris R 01-02-2002 04:50 PM

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


All times are GMT -7. The time now is 04:48 PM.

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