我有这个:
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /#!/$1 [L]
我想/signup 重定向到 index.php?a=signup
我试过了
RewriteRule ^signup/?$ index.php?a=signup
还有其他的,但都没有用!
最佳答案
使用:
RewriteRule ^signup/?$ index.php?a=signup [NC,L]
在RewriteBase/
之后的顶部
关于.htaccess - htaccess SEO Url 友好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34117530/