我尝试重写此网址
http://domain.com/page?LINK=member-name
是
http://domain.com/page/member-name
我试过的规则是:
RewriteEngine On
RewriteRule ^page/([^/]*)$ /page?LINK=$1 [L]
我这样称呼请求:
<a href="page/john-smith">John Smith</a>
答案 0 :(得分:0)
试试这个,我假设页面有.php扩展名。
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^page/([^/]*)$ page.php?LINK=$1 [L]