-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Handle multiple URLs #323
Comments
@pReya can't promise anything but trying to understand your feature request better: You mean when using https://getkirby.com/docs/reference/system/options/url to set up your site being reachable by different URLs? And then you want to only redirect someone accessing |
Correct. It would be nice if the URLs are completely independent and can be configured however one sees fit (either pointing them to the same location or to different locations). |
This could be tricky: I think for Kirby's router in this case, the request to |
I've built this functionality by using |
Does Kirby's default router use that in any way? Retour is built on top of the default router, so if I can tell the router in any way that a specific route is only meant for one host, that would work. Otherwise, this will be hard to implement as I am not too keen to reimplement the router functionality. |
I'm not sure I understand the problem/question, sorry. You can access the global From what I understand/quickly read in the code: Retour basically returns arrays of Redirects to the Kirby router. Kirby does not include the configured |
Kirby can be configured to use multiple URLs. It would be awesome for Retour to be able to use multiple URLs/hostnames for redirects.
E.g. I'd love to be able to create redirects like this:
a.com -> blog/post-a
andb.com -> blog/post-b
Obviously this should be optional/only available when there are actually multiples URLs configured.
The text was updated successfully, but these errors were encountered: