sub domain Rewrite

Topics: User Forum
Mar 15, 2007 at 4:35 AM
Hello,

I am hoping to do this

input URL: http://sub.domain.com/

expect: http://www.domain.com/?city=sub

Any help would be appreciated.

Tianke
Mar 30, 2007 at 11:08 PM
RewriteRule (.*).domain.com www.domain.com/?city=$1