.htaccess inheritance

Somehow (most likely my fault), my .htaccess file has the following:

# Check if the requested URI contains any uppercase letters
RewriteCond %{REQUEST_URI} [A-Z]
# Rewrite the URL to lowercase and redirect the browser
RewriteRule ^(.*)$ /${lc:$1} [R=301,L]

which causes all my images to not load. When I “Update Backlight Index Files”, where does this get inherited or copied from? Every time I update, it’s there and I can’t figure out where it’s coming from. I put it in my main site’s .htaccess a while ago, and have removed it, but not sure how it got into all the .htaccess files in Backlight.

Can someone help? Thanks!

I found what I messed up. It was in my settings where I added the code that kept getting propagated to my gallery. It is fixed. Sorry!

Hi @PBMike, I’m glad you solved it. I meant to respond to you yesterday but realised I had addressed the wrong issue so hadn’t clicked Reply.

FYI, the source of the file used when clicking ‘Update Backlight Index File’ is the file at backlight/modules/module-admin/application/skeleton/backlight_htaccess

It isn’t advisable to edit this file however, is any change will get undone upon updating Backlight. If you do not to change it, edit the file directly at backlight/.htaccess.