You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created by: Joe Pagan ([email protected]) on 2015/03/19 11:45:37 +0000
Votes at time of UserVoice import: 7
I have recently discovered that you can visit the same page at multiple variations of a URL.
For example, these all server the same content: /testimonials, /TESTIMONIALS, /testimoNIals
I would like to request a config setting that would:
Allow the existing functionality (available at all variations)
301 to the intended slug
404 if it's not identical to the intended slug or template directory.
Solutions in the mean time:
This can be semi resolved with a canonical, but, this requires custom code for every site for something that should be native, but, you cannot 404 it.
At server level you can 301 it, but 404ing is a bit more tricky, afaik this is impossible with apache to server up the Craft 404 Template, and, very time consuming to do this with nginx.
Other issues with doing it at server level:
The Craft admin area relies on it.
Action URLs require capitals.
A link that is not setup on an entry should 404, I feel that the entry is always 100% intended to live on the exact slug I give it in the backend and absolutely nothing else.
Craft is serving my content on multiple variations of a url. Someone could link it with a capital somewhere, google could index it then said website has dupe content issues.
This discussion was converted from issue #965 on July 13, 2021 03:55.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have recently discovered that you can visit the same page at multiple variations of a URL.
For example, these all server the same content: /testimonials, /TESTIMONIALS, /testimoNIals
I would like to request a config setting that would:
Solutions in the mean time:
Other issues with doing it at server level:
The Craft admin area relies on it.
Action URLs require capitals.
A link that is not setup on an entry should 404, I feel that the entry is always 100% intended to live on the exact slug I give it in the backend and absolutely nothing else.
Craft is serving my content on multiple variations of a url. Someone could link it with a capital somewhere, google could index it then said website has dupe content issues.
Beta Was this translation helpful? Give feedback.
All reactions