【问题标题】:htaccess SEO Url Friendlyhtaccess SEO 网址友好
【发布时间】:2016-03-11 02:36:51
【问题描述】:

我有这个:

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /#!/$1 [L]

我想 /signup 转至 index.php?a=signup

我试过了

RewriteRule ^signup/?$ index.php?a=signup

还有其他的,但没有一个有效!

【问题讨论】:

  • 现在只是猜测,但不应该是^/signup/?$ 吗? (添加一个斜杠)

标签: .htaccess url seo rewrite


【解决方案1】:

用途:

RewriteRule ^signup/?$ index.php?a=signup [NC,L]

RewriteBase /之后的顶部

【讨论】:

  • 很高兴知道它成功了,您可以通过单击我的答案左上角的复选标记将答案标记为已接受。
猜你喜欢
  • 2017-05-14
  • 2014-07-26
  • 2010-10-24
  • 2016-02-02
  • 2013-03-20
  • 2011-07-23
  • 2011-04-06
  • 2014-01-14
  • 2013-01-06
相关资源
最近更新 更多