I should actually read what you write eh Hans? lol
Try replacing HTTP_REFERER with:
HTTP_HOST or SERVER_ADDRESS
Webmaster wrote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://(something\.)?domain.com/.*$ [NC]
RewriteRule \.$ http://www.domain.com/something [R,L]
Hans Zaunere wrote:
Hello,
The ever fashionable mod_rewrite is throwing me for a loop. Here's the
scenario:
http://something.domain.com -> rewrite ->
http://www.domain.com/something
Any pointers/examples on how to do this with mod_rewrite?
Thanks much,
H
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php