Issue for FORCE LOWER-CASE URLS
2 posts
• Page 1 of 1
Issue for FORCE LOWER-CASE URLS
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.
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.
Re: Issue for FORCE LOWER-CASE URLS
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.
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.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 28 guests