开发者

Replacing a URL Directory Name Using htaccess?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜