1
我正在尝试使用.htaccess重写将子域重定向到PHP变量。.htaccess子域名_GET
我想它是这样工作的:
用户输入:
subdomain.domain.com/randompage
页面重定向到:
domain.com/index.php?sub=subdomain & page = randompage
但用户没有看到URL更改。
有点像如何工作的,但与子域:
RewriteEngine on
RewriteRule ^(.*)$ index.php?page=$1 [NC,QSA]
这是用我的第一次计算器,感谢您的帮助提前!