1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00

fix sitemap and some 404s

This commit is contained in:
Matthias Kretschmann 2013-12-26 18:17:33 +01:00
parent b74c63650d
commit dc1f37283b
3 changed files with 11 additions and 3 deletions

View File

@ -669,10 +669,15 @@ Redirect 301 /home/feed/ /feed/
RedirectMatch 301 ^/([0-9]+)/([0-9]+)/(.*)$ /$3 RedirectMatch 301 ^/([0-9]+)/([0-9]+)/(.*)$ /$3
# Old Content Redirects # Old Content Redirects
Redirect 301 /goodies/icon /goodies
Redirect 301 /goodies/other /goodies
Redirect 301 /goodies/wallpaper /goodies
Redirect 301 /lab http://lab.kremalicious.com Redirect 301 /lab http://lab.kremalicious.com
Redirect 301 /csspaperstack /lab/csspaperstack Redirect 301 /csspaperstack /lab/csspaperstack
Redirect 301 /download /media Redirect 301 /download /media
Redirect 301 /about/contact /about Redirect 301 /about/contact /about
Redirect 301 /contact /about
Redirect 301 /portfolio http://matthiaskretschmann.com Redirect 301 /portfolio http://matthiaskretschmann.com
Redirect 301 /blog / Redirect 301 /blog /
Redirect 301 /topics/goodies /goodies Redirect 301 /topics/goodies /goodies

View File

@ -46,7 +46,7 @@ module Jekyll
SITEMAP_FILE_NAME = "sitemap.xml" SITEMAP_FILE_NAME = "sitemap.xml"
# Any files to exclude from being included in the sitemap.xml # Any files to exclude from being included in the sitemap.xml
EXCLUDED_FILES = ["feed.xml"] EXCLUDED_FILES = ["index.xml", "robots.txt", "search.json"]
# Any files that include posts, so that when a new post is added, the last # Any files that include posts, so that when a new post is added, the last
# modified date of these pages should take that into account # modified date of these pages should take that into account
@ -66,7 +66,7 @@ module Jekyll
end end
def location_on_server def location_on_server
"#{site.config['url']}#{url}" "#{site.config['url']}#{url}/"
end end
end end
@ -78,7 +78,7 @@ module Jekyll
end end
def location_on_server def location_on_server
location = "#{site.config['url']}#{@dir}#{url}" location = "#{site.config['url']}#{url}"
location.gsub(/index.html$/, "") location.gsub(/index.html$/, "")
end end
end end

View File

@ -1,3 +1,6 @@
---
---
User-agent: * User-agent: *
Disallow: /search/ Disallow: /search/
Disallow: /page/ Disallow: /page/