.htaccess - htaccess SEO Url 友好

标签 .htaccess url seo rewrite

我有这个:

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/

相关文章:

.htaccess - 旧页面 PR 到

c# - 如何使用非祖先引用解析 url

seo - Google 的第一个结果不是我的主页

javascript - SEO ajax 和链接

php - .htaccess url重写

mysql - phpMyAdmin 安装程序无法识别自己的密码

apache - 如何使用 `RewriteRule ^(.*)$ ?id=$1 [L,QSA]` 通过 .htaccess 获取文件目录?

asp.net - 如何仅匹配无扩展名的 URL?

url - Dart:将 map 转换成查询字符串

asp.net-mvc - SEO Ajax 和 Asp.net MVC