Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save evgv/f32a8fc38bfc5a72b8cccc75239f79b8 to your computer and use it in GitHub Desktop.
Save evgv/f32a8fc38bfc5a72b8cccc75239f79b8 to your computer and use it in GitHub Desktop.
Magento 1.x.x | Apache configuration | Use of capital and small initial letters

Magento 1.x.x | Apache configuration | Use of capital and small initial letters

RewriteMap lower int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
  RewriteCond %{REQUEST_METHOD} !POST
  RewriteCond %{REQUEST_URI} !/customer/
  RewriteCond %{REQUEST_URI} !/checkout/
  RewriteCond %{REQUEST_URI} !/backmgmt2/
  RewriteRule ^(.*)$  ${lower:$1} [R=301,L,NC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment