tobozo / yourls-geoshorturl Goto Github PK
View Code? Open in Web Editor NEW๐ YOURLS plugin to add per-country support to existing short URLs
License: MIT License
๐ YOURLS plugin to add per-country support to existing short URLs
License: MIT License
Thinking like that it might be even more useful.
Have the country or when there is no country code alternate link it
could look for a continent code as a next step.
Thinking of adding this in a separate fork, didn't do this before here so hope I'm doing it right. :)
For example:
link for Romania redirects to:
link-ro if it exists and stops here.
if link-ro does not exist try to find
link-eu and redirect to that.
if nothing is found, go to link.
This should be possible hopefully, one extra step.
I have installed and activated the plugin as described. Additionally as already described the plugin "Allow Hyphens in Short URLs" and the plugin "Geo API plugin" from alexjakass.
For the GeoIP Redirect Redirection Rules:
Inherit Country code from YOURLS GeoIP plugin
Then with a URL deposited:
https://yourls.digitalfairydust.dev/bosch = https://www.bosch.de/
and for each language a language suffix
https://yourls.digitalfairydust.dev/bosch-en (https://www.bosch-home.nl/)
https://yourls.digitalfairydust.dev/bosch-nl (https://www.bosch-home.com/us/)
https://yourls.digitalfairydust.dev/bosch-de (https://www.bosch.de/unser-unternehmen/bosch-in-deutschland/#standorte)
Unfortunately, I always end up on the same default page: "https://www.bosch.de/".
I tested the whole thing using NordVPN and also by changing the language of the browser.
Can you support here or tell me if I'm doing something wrong?
I am trying to create a country specific URL using the "-xx" in the short name but once I create it the yourls removes the "-" symbol.
example , create "http://mydomain.xx/site" for every one and than I want to create a dedicated separated site for France (example)
so i try to create "http://mydomain.xx/site-fr". YOURLS changes it automatically to "http://mydomain.xx/sitefr", removing the "-" and the geo targeting doesn't work.
any idea how to solve this problem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.