PDA

View Full Version : .htaccess traffic navigation


dana
02-27-2001, 01:50 AM
Can someone please share this knoweledge ...
how to use htaccess to navigate traffic ?
I'm after a solution for cloacking by refferer on a whole domain.
for example, having all traffic from SE directed to ads
and all other traffic directed into a trade page

maybe it can be done with cgi programming, but I have a feeling htacces can do this job

share your expreience please http://bbs.adultwebmasterinfo.com/ubb/smile.gif

Swat
02-27-2001, 02:50 AM
.htaccess can navigate only internal html files to redirect . for example if you want all none found urls to access a certain file .
For what you asked - navigating your traffic and sorting it by the incomming urls , u will need both cgi program , and SSI .
some cj scripts uses it , as far as i know : blind-io , EasyCJ .

eXtremal
02-27-2001, 03:06 AM
Actually you can use mod_rewrite in order to do this:
for example, let's say that you are interesting to redirect all the traffic which comes from yahoo to special page named yahoo.html while in location bar in the browser still the original URL will appear.
In case mod_rewrite is enabled in apache server you can put the following in your .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_REFERER} yahoo\.com
RewriteRule index.html$ yahoo.html

dana
02-27-2001, 03:36 AM
Thanks for your replies http://bbs.adultwebmasterinfo.com/ubb/smile.gif

now I know how to redirect all SE traffic to an ad page
but these solutions are not solving my problem...

here is what I'm after :
I have a site with 10k of free sites traffic
2k is SE 8k is LL, chats, and other

I'm looking to have all bad traffic redirected into a trade page, and I want all SE and AVS traffic to be working the same as it works today.

any solutions ?