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. You got the wrong keywords. Search for mod_rewrite or come back if you need more help.
RewriteRule ^(viewdownload)/(\d+)/(\d+)/?$ download/$1/$2/$3 [L,R=302,QSA]
如果经过一些测试后它达到了您想要的效果,请将R=302
更改为R=301
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.