Avatar of sharingsunshine
Flag for United States of America

asked on 

Need Help Making Destination Url Lower Case

Regex Destination url needs to be lower case.  I found this code that will convert it to lower case in the httpd.conf file.

RewriteMap lc int:tolower
RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]

Open in new window

Here is a sample url


Open in new window

source url


Open in new window

target url

I need to know if there is a better way to do this.  Because it seems very slow on Xampp.
Regular ExpressionsPHPWordPress

Avatar of undefined
Last Comment

8/22/2022 - Mon