开发者

.htaccess URL rewrite help!

I am moving my WordPress setup to a new domain and I have all these links that points to different sections of the blog, I was wondering if .htaccess could help redirect those link http requests to the new domain.

let say my current domain is

http://testserv.url.com/asso/site

and within this site, I have links such as:

http://testserv.url.com/asso/site/?p=1198

then on my new domain, given that I backup and restore my WordPress setup from the current site exactly with the URL

http://newsite.url.com/site/

so when someone clicks on

http://testserv.url.com/asso/site/?p=1198

it would redirect them to

http://newsite.url.com/site/?p开发者_运维百科=1198

Is .htaccess capable of doing rewrites like this? If so how?


You might want to read this about moving a wordpress site and this about the redirect. Also here's a plugin that does the redirect for you

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜