Case insensitive URL permutations all served as 200 instead canonical redirect
-
My setup
- WordPress 6.1.1 (current)
- Redirection 5.3.6 (current)
- Apache Web Server
- Default .htaccess in WordPress root directory
- WordPress > Tool > Redirection > Options > Default URL settings > Case insensitive matches: Can be ON and OFF.
Regardless whether ON or OFF, the following happens:
- /test-page/ is the real slug
- /Test-page/ gets served as 200 with the same content
- /TEst-page/ gets served as 200 with the same content
- /TESt-page/ gets served as 200 with the same content
Maybe WordPress core handles this meanwhile and bypasses your plugin? Or the webserver does something?
I appreciate that the correct URL in the wrong capitalization leads not to a 404 error and hence user frustration, regardless whether WP core or redirection plugins ensures this. But instead of 200 it should be a redirection (HTTP 3xx class).
If the slug has capitalization on purpose, e.g. /Test-Page/ then requesting /TEST-Page/ should redirect to /Test-Page/ to guarantee canonical links.
Thanks for any help.
- The topic ‘Case insensitive URL permutations all served as 200 instead canonical redirect’ is closed to new replies.