[英]Redirect to new URL`s
i want Redirect the old url`s to new address. 我想将旧网址重定向到新地址。
Redirect all 全部重定向
http://www.mysite.com/viewdownload/**/**
url`s to 网址到
http://www.mysite.com/download/viewdownload/**/**
example: 例:
http://www.mysite.com/viewdownload/21/323
Should be Redirect to
http://www.mysite.com/download/viewdownload/21/323
or 要么
http://www.mysite.com/viewdownload/13/961
Should be Redirect to
http://www.mysite.com/download/viewdownload/13/961
If you are using Apache this is something for mod_rewrite / url rewriting & not Joomla. 如果您使用的是Apache,这是用于mod_rewrite / url重写而不是Joomla的东西。 You got the wrong keywords.
您输入了错误的关键字。 Search for mod_rewrite or come back if you need more help.
搜索mod_rewrite或如果需要更多帮助,请返回。
RewriteRule ^(viewdownload)/(\d+)/(\d+)/?$ download/$1/$2/$3 [L,R=302,QSA]
如果经过一些测试后它达到了您想要的效果,请将R=302
更改为R=301
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.