NYCPHP Meetup

NYPHP.org

[nycphp-talk] Subdomain mod_rewrite

Webmaster consult at covenantedesign.com
Fri May 9 16:55:12 EDT 2008


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
>
>
>





More information about the talk mailing list