What is the best approach for redirection of old pages in Jekyll and GitHub Pages?

前端 未结 8 544
萌比男神i
萌比男神i 2020-12-07 09:38

I have blog on github pages - jekyll

What is the best way to solve url strategy migration?

I found the best practice in common is create htaccess like so

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 09:57

    The best solution is to use both and

    It works very well, Google Bot reindexed my entire website under new links without losing positions. Also the users are redirected to the new posts right away.

    
    
    

    Using will redirect each visitor to the new post. As for Google Bot, it treats as 301 redirect, the effect is that you get your pages reindexed and that is what you want.

    I described whole process how I moved my blog from Wordpress to Octopress here. http://konradpodgorski.com/blog/2013/10/21/how-i-migrated-my-blog-from-wordpress-to-octopress/#redirect-301-on-github-pages

提交回复
热议问题