Skip to content
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

Add redirects for URLs with parameters to variants without parameters #168

Open
Noki opened this issue Sep 15, 2024 · 0 comments
Open

Add redirects for URLs with parameters to variants without parameters #168

Noki opened this issue Sep 15, 2024 · 0 comments

Comments

@Noki
Copy link
Member

Noki commented Sep 15, 2024

Google Search Console shows that some URLs are linked externally with parameters e.g.:

https://berlin.freifunk.net/de/?bla

These URLs are duplicate content and consolidated by Google via the canonical tag. A better solution is to modify our Caddyfile to redirect all URLs with parameters to the corresponding URLs without parameters:

https://berlin.freifunk.net/de/?bla => https://berlin.freifunk.net/de/

From looking at the documentation we can do this with a query matcher: https://caddyserver.com/docs/caddyfile/matchers#query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants