not case-sensitive in URL

1

In my page, I have several images and the form that is written in the path is uppercase and minuscule, for example, <img src="imagens/ImagemSistemaDepartamento.JPG">

I needed somehow that .htacess read my code and independent upper and lower, find the image, since it exists in the directory.

Thank you.

    
asked by anonymous 10.11.2015 / 11:39

2 answers

2

You can easily make apache ignore the box using the mod_speling , which is part of the standard modules, but needs to be enabled.

Activate the module, restart apache and add it to .htaccess :

CheckSpelling On
CheckCaseOnly On

Source: How do I make case insensitive URLs in Linux server

    
10.11.2015 / 12:54
0

You could do this as follows:

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteRule ^(.*)$ $1 [NC]

</IfModule>
    
10.11.2015 / 14:16