开发者

making subdomains out of a url?

i have this url

http://www.example.com/user.php?user=solomon

i want to convert this into

开发者_StackOverflow社区

http://solomon.example.com

how can i do this!! thanks :))

p.s. im using plesk


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^http://domain\.com
RewriteRule ^user.php http://domain1.com [R=301, L]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜