Skip to content

Commit

Permalink
Fix cloudflare pages redirect warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcenteno committed Sep 23, 2024
1 parent 45f5934 commit 82cc5f1
Showing 1 changed file with 19 additions and 14 deletions.
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

0 comments on commit 82cc5f1

Please sign in to comment.