![]() |
Couple of Questions about .htaccess
If you know the answer to either of these, please can you share..
1. Using .htaccess can I determine a referral domain and send the visitor to a site depending on site. For example; If Site A then redirect mysite3.com If Site B then redirect mysite1.com If site C then redirect mysite 2.com 2. I have domains that redirect to my main site and they receive traffic in their own right. Currently the sites 301 redirect using .htaccess however I would like to anayze the traffic from these domains, what is the best way to do this? (before it hits my main site) |
Code:
RewriteCond %{HTTP_REFERER} \.SITEINHERE\. [NC,OR] Someone just check the syntax for me |
1. yes
1st make sure which redirected you wanna use 301/302 then use google for code and use it. 2. how do you want to analyze the traffic ? if you want your script to analyze then your best bet would be send all traffic to index.php and make the php do the redirection.. instead of htaccess |
something like this should work:
Code:
RewriteCond %{http_referer} ^http://([^.]+.)*(somesite).com |
Quote:
|
All times are GMT -7. The time now is 09:10 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc