{"id":13523576,"url":"https://github.com/tobozo/YOURLS-GeoShortURL","last_synced_at":"2025-04-01T01:33:02.371Z","repository":{"id":42028978,"uuid":"148299876","full_name":"tobozo/YOURLS-GeoShortURL","owner":"tobozo","description":"🔗 YOURLS plugin to add per-country support to existing short URLs","archived":false,"fork":false,"pushed_at":"2024-06-01T10:55:26.000Z","size":9,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T17:53:42.877Z","etag":null,"topics":["bitly","php","shorten-urls","shorturl","url-shortener","url-shortner","yourls"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobozo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-11T10:22:09.000Z","updated_at":"2024-06-01T10:55:29.000Z","dependencies_parsed_at":"2024-10-24T01:18:54.540Z","dependency_job_id":"f52ae79f-58ea-43fc-9169-d3d673cf0657","html_url":"https://github.com/tobozo/YOURLS-GeoShortURL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobozo%2FYOURLS-GeoShortURL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobozo%2FYOURLS-GeoShortURL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobozo%2FYOURLS-GeoShortURL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobozo%2FYOURLS-GeoShortURL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobozo","download_url":"https://codeload.github.com/tobozo/YOURLS-GeoShortURL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246567064,"owners_count":20798104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitly","php","shorten-urls","shorturl","url-shortener","url-shortner","yourls"],"created_at":"2024-08-01T06:01:01.454Z","updated_at":"2025-04-01T01:32:59.494Z","avatar_url":"https://github.com/tobozo.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":["G"],"readme":"GeoShortURL\n=============\nThis [YOURLS](https://yourls.org) plugin enables the possibility to have different redirection URLs depending on the country of the visitor, by using YOURLS GeoIP plugin or by using the web server's built-in GeoIP module.\n\nIt is strongly recommended to use this plugin along with [302-instead](https://github.com/timcrockford/302-instead) plugin to avoid the 301 caching hell :)\n\nUsage:\n------\n\nFor any given short URL you need to 'Geoize' (e.g: http : //my-yourls-installation/**blah**): \n- use it to create a new short URL with the desired country code suffix (e.g. for France : **blah-fr**)\n- assign it with your country-specific long URL\n\n\nHow to install this plugin\n------\n1. Create a new directory under the \"user/plugins\" directory\n2. Save the \"plugin.php\" file into the directory you created in step 1\n3. Activate the plugin using your YOURLS admin panel \n\nActivate conditional redirection for a set of locales\n------\n\nGiven the following long URLs:\n - `https://blah.something/product/product-a` This is the default page in English\n - `https://blah.something/ru/product/product-a` This is a Russian page\n - `https://blah.something/fr/product/product-a` This is a French page\n\n1. Create links in the admin panel, you need to add short URLs like\n  - `https://my-yourls-installation/a` for `https://blah.something/product/product-a`\n  - `https://my-yourls-installation/a-ru` for `https://blah.something/ru/product/product-a`\n  - `https://my-yourls-installation/a-fr` for `https://blah.something/fr/product/product-a`\n\n2. Share\n  After that, you just need to share `https://my-yourls-installation/a` with others,\n  It will automatically detect and match `my-yourls-installation/a-[geocode]` to redirect to the corresponding locale page or just go to the default (English) page.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobozo%2FYOURLS-GeoShortURL","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobozo%2FYOURLS-GeoShortURL","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobozo%2FYOURLS-GeoShortURL/lists"}