.htaccess Htaccess重定向301文件夹
我想用我的旧链接的htaccess文件进行重定向.htaccess Htaccess重定向301文件夹,.htaccess,url-redirection,.htaccess,Url Redirection,我想用我的旧链接的htaccess文件进行重定向 www.domain.com/220262/page.html to www.domain.com/video/220262/page.html 谢谢这应该可以: RewriteEngine On RewriteRule ^([0-9]+)/page.html /video/$1/page.html [R=301,L] RewriteRule^([0-9]+)\/page\.html$video/$1/page.html[QSA,L,R=3
www.domain.com/220262/page.html to www.domain.com/video/220262/page.html
谢谢这应该可以:
RewriteEngine On
RewriteRule ^([0-9]+)/page.html /video/$1/page.html [R=301,L]
RewriteRule^([0-9]+)\/page\.html$video/$1/page.html[QSA,L,R=301]不工作:/RewriteRule^([0-9]+)\/([a-z]+)\.html$[QSA,L,R=301]工作!