开发者

How to do a htaccess modrewrite for redirecting a url?

Got an urgent issue, and I'm totally stumped.

We recently migrated a bunch of networked blogs, and realized one of them was using a subfolder structure, whereas all the new system is all subdomains. The wordpress multisite system doesn't allow for both subdomains and subfolder structures, so I'm guessing the logical solution would be to use htaccess to redirect requests for the old urls to the new url. But how do I write the code in th开发者_Go百科e htaccess?

I need to make all requests to http://www.mysite.com/720/etcetc to http://blog.mysite.com/etcetc

Is this possible or is there another more viable solution?

Your assistance would be greatly greatly appreciated.

Thanks in advance.


My recommendation would be to install the Redirection plug-in on whatever site you have running at http://www.mysite.com/ and have it dynamically redirect all requests to /720/etcetc/* to the new address. Redirection can add the appropriate HTTP 301 headers and, since it's doing things dynamically, you won't need to hunt down each and every URL to write your .htaccess file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜