Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In CrafterCMS, can engine handle case insensitive URLs?

I was wondering if Crafter Engine could handle case insensitive urls such as /hello-World would be served the same as /hello-world ?

Thank you,

Nicolas

like image 670
Nicolas Dufour Avatar asked May 19 '17 15:05

Nicolas Dufour


1 Answers

By default, Crafter CMS's URLs are lowercase and Crafter Engine is case sensitive.

Your best choice is to front it with Apache HTTPd with a lower-casing rewrite rule. Something like this:

RewriteEngine On RewriteRule (.*) ${lc:$1} [PT,L]

like image 117
sumerz Avatar answered Sep 23 '22 00:09

sumerz