Is there any way to make apache case insensitive on linux?

Asked

Viewed 379 times

0

I made the entire application using Windows,e é relatively grande, e em muitas partes do código esqueci das regras de case sensitive, como o windows ignora isso não pensei em mudar nada, except that I am using a Linux hosting, and the application is giving several problems. there is some way to make apache work case insensitive?

My current configuration of htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

Options -Indexes

ErrorDocument 404 /404
ErrorDocument 400 /404
ErrorDocument 401 /404
ErrorDocument 403 /404
ErrorDocument 500 /404
  • 1

    mod_rewrite is case sensitive by default. Use the [NC] flag to make it case insensitive. I am not going to answer because it is not clear what you are referring to in the question. It is about mod_rewrite or about filesystem?

  • The filesystem, apache on linux being specific, is it possible? or what might be case insensitive...

  • You will need to normalize the names of your files. Adopt good programming practices to avoid this type of disorder. Otherwise, yes it is possible to force Linux as case insensitve for the filesystem, but it is something that requires administrative access and may not be good.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.