Issue for FORCE LOWER-CASE URLS

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 7
Joined: 16 Oct 2015, 03:30

Issue for FORCE LOWER-CASE URLS

19 Jan 2016, 08:00

Hi Support,
according to According to Yaroslav tests, I have download the Trial version of APE, but the issue is same with ISAPI_write 3.0

I want to force lower case urls when the url include [A-Z]. but I found an issue.
the code as below:
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.pdf|\.txt|\.mp4|\.flv|\.swf|\.doc|\.xls|\.xml|\.xsl|\.htm)$
RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R=301]

e.g.
searchpage?query=want%20to
also change to
searchpage?query=want%2520to
please let me know how to avoid it.
and char "&" also will be change.

can you let me how to resolve it.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Issue for FORCE LOWER-CASE URLS

25 Jan 2016, 09:38

Hello.

You also need to use NE flag:

RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.pdf|\.txt|\.mp4|\.flv|\.swf|\.doc|\.xls|\.xml|\.xsl|\.htm)$
RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R=301,NE]

And please make sure ISAPI_Rewrite is uninstalled because it will interfere with Ape.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 40 guests