开发者

making subdomains out of a url?

开发者 https://www.devze.com 2023-02-01 16:05 出处:网络
i have this url http://www.example.com/user.php?user=solomon i want to convert this into 开发者_StackOverflow社区

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

精彩评论

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