Concrete5 v8 htaccess uppercase to lowercase

Permalink
Hi, hope someone can help me out on this.

I've updated the .htaccess file to redirect all queries with uppercase letters to lowercase. E.g.https://www.domain.com/someTHING... tohttps://www.domain.com/something... to prevent duplicate content.

Unfortunately C5 is build on camelcase. Google Search Console now reports, that there are over 200 404 URLs.

Example:https://www.domain.com/concrete/src/backup/contentimporter/valueinsp...

Because the correct path ishttps://www.domain.com/concrete/src/Backup/ContentImporter/ValueInsp...

Is there something I can do to get this work?

Thanks!

# Redirect 301 uppercase to lowercase
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule [A-Z] - [E=HASCAPS:TRUE,S=1]
  RewriteRule ![A-Z] - [S=28]
  RewriteRule ^([^A]*)A(.*)$ $1a$2
  RewriteRule ^([^B]*)B(.*)$ $1b$2
  RewriteRule ^([^C]*)C(.*)$ $1c$2
  RewriteRule ^([^D]*)D(.*)$ $1d$2
  RewriteRule ^([^E]*)E(.*)$ $1e$2
  RewriteRule ^([^F]*)F(.*)$ $1f$2
  RewriteRule ^([^G]*)G(.*)$ $1g$2
  RewriteRule ^([^H]*)H(.*)$ $1h$2
  RewriteRule ^([^I]*)I(.*)$ $1i$2
  RewriteRule ^([^J]*)J(.*)$ $1j$2