View Full Version : htaccess question
copland
12-04-2001, 09:17 PM
Anyone know how to redirect all hits from a certain domain, to a certain page on my site?
Can't find anything with the search box.
Darius
12-04-2001, 09:28 PM
Hi
Search for htaccess.
You should find lots of stuff on it. :D
Darius
vovan!
12-04-2001, 10:30 PM
Look here:
http://httpd.apache.org/docs/mod/mod_rewrite.html
mr. mpg
12-04-2001, 10:51 PM
Give this a shot....
Redirect / http://www.yoururl.com/?
copland
12-05-2001, 10:03 AM
Mr. mpg: You mean stick that in the htaccess file? (I've been clicking it). Where does the refering url and url to be directed to fit in?
This is the closest I can find at apache, but I get 500 errors:-
---------------
RewriteMap deflector txt:/deflector.map
RewriteCond %{HTTP_REFERER} !=""
RewriteCond ${deflector:%{HTTP_REFERER}} ^-$
RewriteRule ^.* %{HTTP_REFERER} [R,L]
RewriteCond %{HTTP_REFERER} !=""
RewriteCond ${deflector:%{HTTP_REFERER}|NOT-FOUND} !=NOT-FOUND
RewriteRule ^.* ${deflector:%{HTTP_REFERER}} [R,L]
-------------------
##
## deflector.map
##
http://www.sinnocence.com/ http://www.e-t-r.net/video/buffy/
Darius
12-05-2001, 10:25 AM
Hi
Put this in a text file. Upload it and make sure it is named .htaccess with no extensions.
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.put_domain_here.com [NC]
RewriteRule /* http://www.your_domain.com/page.html [R,L]
or you can do multiple domains like this
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.put_domain_here.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www.put_domain_here.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www.put_domain_here.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www.put_domain_here.com [NC]
RewriteRule /* http://www.your_domain.com/page.html [R,L]
You can change this line http://www.your_domain.com/page.html
to send traffic anywhere you want.
Hope this helps
copland
12-05-2001, 12:02 PM
More 500 errors. I've given up. I'm redirecting through ccbill, but that means all referers go to that page (maybe not such a bad thing considering the content).
Does anyone know if it's possible to stick stuff in the ccbill url to send them to a specific page?
For example, I track hits on these pages:- http://www.e-t-r.net/ http://www.e-t-r.net/video/buffy/ http://www.e-t-r.net/video/horseporn/ http://www.e-t-r.net/video/unusualinsertions/ http://www.e-t-r.net/video/giantclits/ http://www.e-t-r.net/video/monstercocks/ http://www.e-t-r.net/video/lesbiandoggyfuckers/ http://www.e-t-r.net/video/handicapped/ http://www.e-t-r.net/video/ejaculations/ http://www.e-t-r.net/video/fisting/ http://www.e-t-r.net/video/original/ http://www.e-t-r.net/girls/analbitches/ http://www.e-t-r.net/girls/fistingsluts/ http://www.e-t-r.net/boys/chickswithdicks/
Any hits there count as a hit in for linking partners. If they use their ccbill url though, they can only send it to the front page (the buffy page now).
Anyone know an easy way round that?
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.