Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bettysteger/geo-redirects
https://github.com/bettysteger/geo-redirects
freetools geotargeting redirects
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bettysteger/geo-redirects
- Owner: bettysteger
- Created: 2021-06-06T08:36:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T22:45:25.000Z (12 months ago)
- Last Synced: 2024-10-12T08:12:29.969Z (3 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.