mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
chore: add redirect rules for ngnix
This commit is contained in:
11
nginx.conf
11
nginx.conf
@@ -23,6 +23,17 @@ server {
|
|||||||
add_header cache-control "max-age=0, no-cache, no-store, must-revalidate";
|
add_header cache-control "max-age=0, no-cache, no-store, must-revalidate";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Redirect domain aliases to primary domain
|
||||||
|
if ($host ~* "^www.imhoff.name$") {
|
||||||
|
return 301 https://www.stefanimhoff.de$request_uri;
|
||||||
|
}
|
||||||
|
if ($host ~* "^stefan.imhoff.name$") {
|
||||||
|
return 301 https://www.stefanimhoff.de$request_uri;
|
||||||
|
}
|
||||||
|
if ($host ~* "^imhoff.name$") {
|
||||||
|
return 301 https://www.stefanimhoff.de$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
# Redirects
|
# Redirects
|
||||||
rewrite ^/feed-raindrop.xml$ https://bg.raindrop.io/rss/public/25041238 permanent;
|
rewrite ^/feed-raindrop.xml$ https://bg.raindrop.io/rss/public/25041238 permanent;
|
||||||
rewrite ^/index.xml$ /rss.xml permanent;
|
rewrite ^/index.xml$ /rss.xml permanent;
|
||||||
|
|||||||
Reference in New Issue
Block a user