Hans Zaunere wrote:
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?

You may want to try something like:

RewriteCond %{SERVER_NAME} ^(something)\.domain\.com
RewriteRule ^/(.*) http://www.domain.com/%1/$1 [R]

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

Reply via email to