Shortened URL is breaking when URL is in Upper Case
-
Hi there,
Currently I'm having some troubling mitigating an odd occurrence with some redirected shortened URLs being in upper case.
Here is how they should be behaving -
www.rhinosec.com/webapp -> https://rhinosecuritylabs.com/landing/sample-report-webapp-pentest/
www.rhinosec.com/network -> https://rhinosecuritylabs.com/landing/sample-report-network-pentest/
www.rhinosec.com/se -> https://rhinosecuritylabs.com/landing/social-engineering-example-report/but when the /______ is capitalized - for example - WEBAPP, NETWORK, SE; WordPress either gives me a 404 or guesses the pages and lands on:
NETWORK = https://rhinosecuritylabs.com/assessment-services/network-penetration-testing/
SE = https://rhinosecuritylabs.com/assessment-services/secure-code-review/
WEBAPP = 404I was wondering if this discrepancy should be taken care of in the Htaccess file, Cloudflare, or WordPress redirect plug-in?
-
Hi Benjamin,
Although there is a possibility that your WordPress redirect plugin is causing this issue, it would be hard to tell without having access to the CMS. Often times a plugin will have a box that's checked somewhere that might cause something weird to occur. However, I doubt this is the case.
To answer your question, I would do this in the htaccess file although I would be cautious and test it first. Here is a write-up with someone who had a similar issues (he goes into details about his solution).
Hope that helps!