.htaccess 如果使用htacess的url中出现一个单词,则重定向到其他url
您好,我需要创建一个软301重定向,如果“/myproject/”出现在我的url中,我必须添加“blog/myproject/”并重定向到该url.htaccess 如果使用htacess的url中出现一个单词,则重定向到其他url,.htaccess,redirect,.htaccess,Redirect,您好,我需要创建一个软301重定向,如果“/myproject/”出现在我的url中,我必须添加“blog/myproject/”并重定向到该url examlpe.com/myprojects/test.html => examlpe.com/blog/myprojects/test.html examlpe.com/myprojects/myvilla.html => examlpe.com/blog/myprojects/myvilla.html examlpe.com/myp
examlpe.com/myprojects/test.html => examlpe.com/blog/myprojects/test.html
examlpe.com/myprojects/myvilla.html => examlpe.com/blog/myprojects/myvilla.html
examlpe.com/myprojects/car.html => examlpe.com/blog/myprojects/car.html
有很多url都是这样的
如何重定向?我不想这样一个接一个地重定向
Redirect 301 /examlpe.com/myprojects/test.html http://examlpe.com/blog/myprojects/test.html
请帮助您可以使用:
Redirect 301 /myproject/ /blog/
这将把所有请求从
/myproject/
重定向到/blog/
非常感谢。但是我想重定向/myproject/到/blog//myproject/