Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
BlogEnginet.net到Jekyll的迁移而不中断URL_Url_Github_Migration_Jekyll_Blogengine.net - Fatal编程技术网

BlogEnginet.net到Jekyll的迁移而不中断URL

BlogEnginet.net到Jekyll的迁移而不中断URL,url,github,migration,jekyll,blogengine.net,Url,Github,Migration,Jekyll,Blogengine.net,我目前正在使用BlogEngine.net作为我的博客平台。我被杰基尔的美丽和简单迷住了,我想去追求它 我发现了两种资源可以帮助迁移现有的帖子:和。我还没有尝试这些方法。然而,我担心URL结构冲突,这可能会导致我的文章链接断开,而这些文章在别处被引用 BlogEngine.net使用URL结构“http://sitename.com/post/title of the post.aspx”。我不确定在迁移到jekyll后是否可以保留相同的URL结构(我已经检查了jekyll的永久链接,但我认为这

我目前正在使用BlogEngine.net作为我的博客平台。我被杰基尔的美丽和简单迷住了,我想去追求它

我发现了两种资源可以帮助迁移现有的帖子:和。我还没有尝试这些方法。然而,我担心URL结构冲突,这可能会导致我的文章链接断开,而这些文章在别处被引用

BlogEngine.net使用URL结构“http://sitename.com/post/title of the post.aspx”。我不确定在迁移到jekyll后是否可以保留相同的URL结构(我已经检查了jekyll的永久链接,但我认为这没有帮助)。请告诉我如何解决从blogEngine.net迁移到jekyll而不破坏URL和丢失SEO排名的问题


编辑:我想在不支持重定向的Github页面上托管我的静态博客。有没有一种方法可以使用Github,或者我应该选择一个支持htaccess重定向的主机?

您可以与Jekyll保持相同的URL结构。在_config.yml文件中添加以下内容:

permalink: /post/:title.aspx/index.html
Jekyll从_posts文件夹中文件的URL部分选择:title

例如:文件名:2012-06-09-title-of-the-post.markdown,title:the-post

由于my是由Jekyll提供支持的,因此我在本地使用这个扩展名为.aspx的新URL格式进行了测试。成功了

Jekyll创建了一个名为“title of the post.aspx”的文件夹,而不是文件,并在该文件夹中创建index.html。因此不需要重定向

啊..将“.aspx”作为文件夹名的一部分而不是扩展名..我从来没有想到..这是个好把戏!非常感谢阿拉文达:)