mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:35:31 -04:00
update redirects
This commit is contained in:
34
netlify.toml
34
netlify.toml
@@ -1,11 +1,11 @@
|
||||
# netlify.sh downloads my custom Hugo fork and builds the site independently.
|
||||
# netlify.sh downloads Hugo fork and builds the site independently.
|
||||
[build]
|
||||
command = "./scripts/netlify-build.sh"
|
||||
publish = "public"
|
||||
|
||||
|
||||
# The most important headers and redirects are specified in the _headers and
|
||||
# _redirects files generated by Hugo. These are additional custom redirects.
|
||||
# _redirects files generated by Hugo. These are additional custom rules.
|
||||
|
||||
# Redirect default Netlify subdomain to primary domain:
|
||||
[[redirects]]
|
||||
@@ -24,20 +24,34 @@
|
||||
to = "/index.xml"
|
||||
status = 301
|
||||
|
||||
# Moved Y2K site to its own subdomain:
|
||||
# Mirror Y2K site from GitHub Pages:
|
||||
[[redirects]]
|
||||
from = "/y2k/*"
|
||||
to = "https://y2k.jarv.is/:splat"
|
||||
status = 302
|
||||
to = "https://jakejarvis.github.io/y2k/:splat"
|
||||
status = 200
|
||||
|
||||
# Redirect iOS tracker files to their repo's GitHub Pages:
|
||||
# Mirror iOS tracker files from GitHub Pages:
|
||||
[[redirects]]
|
||||
from = "/ios-trackers/*"
|
||||
to = "https://jakejarvis.github.io/ios-trackers/:splat"
|
||||
status = 200
|
||||
|
||||
# H A C K E R M A N
|
||||
# Mirror Princeton curriculum site from GitHub Pages:
|
||||
[[redirects]]
|
||||
from = "/wp-login.php"
|
||||
to = "https://giphy.com/embed/RyXVu4ZW454IM"
|
||||
status = 302
|
||||
from = "/scrabble/*"
|
||||
to = "https://jakejarvis.github.io/scrabble/:splat"
|
||||
status = 200
|
||||
|
||||
# H A C K E R M A N ( ͡° ͜ʖ ͡°)
|
||||
[[redirects]]
|
||||
from = "*/wp-login.php"
|
||||
to = "/h4x0rz.gif"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "*/wp-admin/*"
|
||||
to = "/h4x0rz.gif"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "*/login"
|
||||
to = "/h4x0rz.gif"
|
||||
status = 200
|
||||
|
Reference in New Issue
Block a user