Case sensitivity in URLs
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)
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)
- 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
from
Code: Select all
// EXTREME FRIENDLY URL, TRUE for dissmiss internet standard
define('EXTREME_FRIENDLY_URL', false);
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
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.
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.