https://github.com/bettysteger/geo-redirects
Geo-targeted redirects for free!
https://github.com/bettysteger/geo-redirects
freetools geotargeting redirects
Last synced: 2 months ago
JSON representation
Geo-targeted redirects for free!
- Host: GitHub
- URL: https://github.com/bettysteger/geo-redirects
- Owner: bettysteger
- Created: 2021-06-06T08:36:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T22:45:25.000Z (almost 2 years ago)
- Last Synced: 2025-07-27T22:48:28.966Z (4 months ago)
- Topics: freetools, geotargeting, redirects
- Language: HTML
- Homepage: https://302.netlify.app/
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redirect by country or language
For large multi-regional or multi-lingual sites, you may want to send site visitors to different content based on their location (by country GeoIP data) or their browser’s language configuration.
[Netlify](
https://docs.netlify.com/routing/redirects/) can handle these requests with GeoIP- and language-based redirects directly from their CDN nodes.
When you add these redirect rules, Netlify automatically creates alternate headers to enable the redirection in our CDN nodes. This removes the need for a round trip to our origin servers and ensures that normal pages, besides country or language based redirects, are cached on the CDN nodes.
Here are some examples: https://github.com/bettysteger/geo-redirects/blob/main/_redirects
The `Country` attribute accepts [ISO 3166 country codes](http://dev.maxmind.com/geoip/legacy/codes/iso3166/).
The `Language` attribute accepts [standard browser language identification codes](http://www.metamodpro.com/browser-language-codes).
## Affiliate Link Examples
https://302.netlify.app/flaconi should redirect to flaconi.at if you are in Austria, otherwise it should redirect to flaconi.de.