Case sensitivity in URLs

Post Reply
User avatar
esta
Jr. Bludit
Posts: 8
Joined: Mon Apr 11, 2016 2:21 pm

Hello guys,

I was wondering if there is any commonly used and safe method of redirecting from uppercase URLs to lowercase for Bludit.

(In cases when someone types http://www.example.com/post/Title-of-the-Post
instead of lower case http://www.example.com/post/title-of-the-post)
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Try to change in init.php to

Code: Select all

// EXTREME FRIENDLY URL, TRUE for dissmiss internet standard
define('EXTREME_FRIENDLY_URL', false);
from

Code: Select all

// EXTREME FRIENDLY URL, TRUE for dissmiss internet standard
define('EXTREME_FRIENDLY_URL', true);
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
esta
Jr. Bludit
Posts: 8
Joined: Mon Apr 11, 2016 2:21 pm

Thanks for your answer Edi! As I see, this prevents me from creating an uppercase link in the future and it helps quite a lot.

But if the user types uppercase letter, they'll still get "404" page.
I guess the only method for this would be to take on the .htaccess challenge and to set redirects?
*Shivers* Not sure if that's safe.
Post Reply