Skip to content

Commit

Permalink
Allow Gatbsy to redirect v1 pages to v2 pages (bitcoincashorg#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbcox authored and EyeOfPython committed Nov 17, 2020
1 parent b90c750 commit 17b246c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,26 @@ server {
location / {
expires 0;
add_header Cache-Control "public, must-revalidate";
try_files /htmlv2/$uri /htmlv2/$uri/index.html =404;
}

location /get-listed.html {
try_files /htmlv2/$uri /html/$uri /htmlv2/$uri/index.html /html/$uri/index.html =404;
}

location /privacy-policy.html {
try_files /htmlv2/$uri /html/$uri /htmlv2/$uri/index.html /html/$uri/index.html =404;
}

location /legal.html {
try_files /htmlv2/$uri /html/$uri /htmlv2/$uri/index.html /html/$uri/index.html =404;
}

location /spec/ {
try_files /htmlv2/$uri /html/$uri /htmlv2/$uri/index.html /html/$uri/index.html =404;
}

location /specs/ {
try_files /htmlv2/$uri /html/$uri /htmlv2/$uri/index.html /html/$uri/index.html =404;
}

Expand All @@ -63,7 +83,7 @@ server {
# page-data.json and app-data.json files shoud be revalidated on every request
expires 0;
add_header Cache-Control "public, must-revalidate";
try_files /htmlv2/$uri /html/$uri =404;
try_files /htmlv2/$uri =404;
}

location /robots.txt {
Expand Down

0 comments on commit 17b246c

Please sign in to comment.