Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cloudflare pages redirect warnings #1197

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions static/_redirects
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
/maxmind-server-ip-addresses.xml /maxmind-server-ip-addresses/index.xml 302
/GeoIP2-Enterprise-CSV_Example.zip /static/GeoIP2-Enterprise-CSV_Example.zip 301
/fips-iso-map.csv /static/csv/fips-iso-map.csv 301
/geoip-test-databases.tar.gz /static/geoip-test-databases.tar.gz 301
/checksum.txt /static/checksum.txt 301
/csv-files/:file /static/csv/:file 301
/static/csv/codes/eu_country_list.csv /static/csv/codes/maxmind/eu_country_list.csv 301
/static/csv/codes/ap_country_list.csv /static/csv/codes/maxmind/ap_country_list.csv 301
/csv-files/:file /static/csv/:file 301
/csv/:files /static/csv/:file 301
/static/pdfs/:files /static/pdf/:file 301
/minfraud-soap-*.wsdl /sattic/wsdl/minfraud-soap-:splat.wsdl 301
/static/maxmind-region-codes.csv https://download.maxmind.com/download/geoip/misc/region_codes.csv 301

# RSS feed
# The year needs to be hardcoded. A page for the new year's
# release note won't exist until a new .md file is created in the
# /content/<product>/release-notes folder for that new year
/geoip/release-notes /geoip/release-notes/2024 302
/geoip/release-notes/rss.xml /geoip/release-notes/2024/index.xml 302
/minfraud/release-notes /minfraud/release-notes/2024 302
/minfraud/release-notes/rss.xml /minfraud/release-notes/2024/index.xml 302

# General - without splats or placeholders
# Redirects are more performant when redirects without splats/placeholders are above those with splats/placeholders
/checksum.txt /static/checksum.txt 301
/fips-iso-map.csv /static/csv/fips-iso-map.csv 301
/geoip-test-databases.tar.gz /static/geoip-test-databases.tar.gz 301
/GeoIP2-Enterprise-CSV_Example.zip /static/GeoIP2-Enterprise-CSV_Example.zip 301
/maxmind-server-ip-addresses.xml /maxmind-server-ip-addresses/index.xml 302
/static/csv/codes/ap_country_list.csv /static/csv/codes/maxmind/ap_country_list.csv 301
/static/csv/codes/eu_country_list.csv /static/csv/codes/maxmind/eu_country_list.csv 301
/static/maxmind-region-codes.csv https://download.maxmind.com/download/geoip/misc/region_codes.csv 301


# General - with splats and placeholders
/csv/:files /static/csv/:file 301
/csv-files/:file /static/csv/:file 301
/minfraud-soap-*.wsdl /sattic/wsdl/minfraud-soap-:splat.wsdl 301
/static/pdfs/:files /static/pdf/:file 301