Score:0

Permanent redirect URL in uppercase to lowercase using htaccess

jp flag

I have the URLs in large letters and I need a permanent redirect to small letters.

http://localhost/test/en/Ads-1-Alsace-Bas-Rhin-Cars-Demo01-Particular Redirect to: http://localhost/test/en/ads-1-alsace-bas-rhin-cars-demo01-particular

Can help me with this. Thank you.

### Rewriting index and general urls ###

RewriteRule ^(fr|en|es|it)/$ ?lang=$1 [L]

RewriteRule ^(fr|en|es|it)$ /$1/ [R]

RewriteRule ^(fr|en|es|it)/index.htm$ index.htm [L]

RewriteRule ^(fr|en|es|it)/([.-_/a-z0-9]*).php$ $2.php?lang=$1 [QSA]

### Rewriting ulrs ads, shops and page by language ###

RewriteRule ^(fr|en|es|it)/Ads-([0-9]+)-[a-zA-Z0-9-]+$ ad_page.php?id_ad=$2&lang=$1 [L]
RewriteRule ^(fr|en|es|it)/Shop-([0-9]+)-[a-zA-Z0-9-]+$ shop_page.php?id_shop=$2&lang=$1 [L]
RewriteRule ^(fr|en|es|it)/Page-([0-9]+)-[a-zA-Z0-9-]+$ page.php?id_page=$2&lang=$1 [L]

### Rewriting ulrs ads, shops and page whithout language ###

RewriteRule ^Ads-([0-9]+)-[a-zA-Z0-9-]+$ ad_page.php?id_ad=$1 [L]

RewriteRule ^Shop-([0-9]+)-[a-zA-Z0-9-]+$ shop_page.php?id_shop=$1 [L]

RewriteRule ^Page-([0-9]+)-[a-zA-Z0-9-]+$ page.php?id_page=$1 [L]
kz flag
... Specifically, see [my answer](https://serverfault.com/a/1043764/49157) to the above question that converts the URL-path from uppercase to lowercase using `.htaccess` on Apache 2.4
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.