NYCPHP Meetup

NYPHP.org

[nycphp-talk] Subdomain mod_rewrite

Webmaster consult at covenantedesign.com
Fri May 9 16:47:54 EDT 2008


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





More information about the talk mailing list