我在Tumblr上build立我的新博客,我已经得到了所有我的旧WordPress的post,并迁移到他们的新家。 问题是,Tumblr永久链接是不同于WordPress的(post标题部分),所以我想知道我可以如何手动redirectURL:
http://dreamintech.net/2012/3/post-title-something-test
至:
http://nathancampos.me/post/1920418430/post-title-here
有没有什么办法可以做到这一点,而不必使用regex在新的URL插入post-title部分,因为我想这一切手动。
PS:我不在乎将要花费的时间
你可以像这样在你的httpd.conf文件中制作从和到URL的映射;
<VirtualHost *:80> ServerName dreamintech.net ServerAlias www.dreamintech.net .... # map relative URLs under dreamintech.net to the # remote URL with a 302 redirect Redirect permanent /2012/3/post-title-something-test http://nathancampos.me/post/1920418430/post-title-here Redirect permanent /2012/3/post-title-something-2 http://nathancampos.me/post/1920418430/post-title-2 Redirect permanent /2012/3/post-title-something-3 http://nathancampos.me/post/1920418430/post-title-3 </VirtualHost>