开发者

Replacing a URL Directory Name Using htaccess?

开发者 https://www.devze.com 2023-03-10 18:12 出处:网络
My current website is: example.com/Hand_Soap/ There are also many pages like: example.com/Hand_Soap/Blue

My current website is:

example.com/Hand_Soap/

There are also many pages like:

example.com/Hand_Soap/Blue

exampl开发者_Python百科e.com/Hand_Soap/Green

etc

How do I make a 301 redirect to:

example.com/Hand_Wash/

example.com/Hand_Wash/Blue

example.com/Hand_Wash/Green

etc

I have looked at several posts on this site, but none seem to work for me.

Cheers!


In the end I used the WP direction plugin. Works well!


Something like this should work

   redirect 301 /Hand_Soap/ http://example.com/Hand_Wash/
   redirect 301 /Hand_Soap/Blue http://example.com/Hand_Wash/Blue
   redirect 301 /Hand_Soap/Green http://example.com/Hand_Wash/Green
0

精彩评论

暂无评论...
验证码 换一张
取 消