我需要更改abc.mydomain.com/xyz.php?id3=se
到abc.mydomain.com/xyz/se/
url重写。 这是我在.htaccess代码(放在ABC文件夹)url rewriting does not work for pages in subdomain
Options +FollowSymLinks
RewriteEngine on
RewriteRule /xyz/([0-9a-zA-Z]+) /xyz.php?id3=$1
我使用的是托管服务器。
也尝试没有Options +FollowSymLinks
但仍然无法正常工作。非常感谢来自某人的任何建议。
我应该将相同的代码粘贴到主文件夹中的.htaccess文件中吗?或我的代码中的任何错误? – user1438538