我想添加到我的网站子域名。
我有一个格式的文件:
starwines.com.pl / test.php? page = first
starwines.com.pl / test.php? page = second
starwines.com.pl / test.php? page = third
...
子域名我想要的:
first.starwines.com.pl
second.starwines.com.pl
third.starwines.com.pl
...
.htaccess - > 我做了这样的事情:
RewriteCond %{HTTP_HOST} ^first.starwines.com.pl$ [OR]
RewriteCond %{HTTP_HOST} ^www.first.starwines.com.pl$
RewriteRule ^(.*)$ http://starwines.com.pl/test.php?page=first [R=301,L]
此代码几乎可以使用,但网址更改为文件test.php
我希望子域保持不变:test.starwines.com
请帮帮我:(