我想重写
- www.mydomain.com/www/whatever.php
到
- www.mydomain.com/www/whatever.php?hl=EN
whatever.php 不是固定的,它代表 www 目录中的任何 php 页面。
我的 htaccess 目前看起来像这样:
RewriteEngine on
RewriteCond %{REQUEST_URI} !hl=
RewriteRule ^(.+)$ $1?hl=EN [QSA,R=301,L]
但由于某种原因,它会将每个页面的真实硬盘路径添加到 www.mydomain.com,例如:
- 127.0.0.1:8080/index.php
变成
- 127.0.0.1:8080/D:/mypath/index.php?hl=EN
我一定在这里做错了什么,知道吗?