Avatar of sharingsunshine
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

http://www.theherbsplace.com/Garlic_Oil_Capsules_p_400.html

Open in new window

source url

https://www.theherbsplace.com/product/garlic_oil_capsules_p_400/

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
sharingsunshine

8/22/2022 - Mon