重定向旧网址并避免使用404

时间:2012-07-16 17:52:32

标签: .htaccess redirect

我的旧网址是

http://site.com/news/183/Blue+Lagoon

这是htaccess

RewriteRule ^([a-z]+)(/([^/]{0,32})(/.+)?)?$  index.php?a=$1&q=$3    [L]

现在我改变了url结构,我的网址就像

http://site.com/news/183

和htaccess中的行是

RewriteRule ^([a-z]+)(/([^/]{0,32})?)?$  index.php?a=$1&q=$3    [L,NC] 

现在,当我的网站上的用户来自谷歌时,我有404错误,谷歌网站管理员工具也报告了我这个错误,我如何使用htaccess将旧网址重定向到新网址...

0 个答案:

没有答案
相关问题