Issue for FORCE LOWER-CASE URLS

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 13
Joined: 21 May 2015, 17:54

Issue for FORCE LOWER-CASE URLS

11 Nov 2015, 16:17

Hi Support,
I want to force lower case urls when the url include [A-Z]. but I found an issue.

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]

the url
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.

User avatar
Posts: 13
Joined: 21 May 2015, 17:54

Re: Issue for FORCE LOWER-CASE URLS

17 Nov 2015, 07:45

I won't the querystring change. any solution for me?
e.g. http://mySite.com/Search?query=the%20page&pageindex=2
I want
http://mysite.com/search?query=the%20page&pageindex=2

Thanks,
Gan

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

Re: Issue for FORCE LOWER-CASE URLS

30 Nov 2015, 08:42

Hello.

Sorry for delay.
According to my tests Helicon Ape product, which has same rewriting syntax as ISAPI_Rewrite 3, does not suffer from this problem. I tested your exact rule and URL and it just redirects to lowercase. Would it be possible for you to upgrade to use Helicon Ape instead of ISAPI_Rewrite? You can install trial version of Helicon Ape to test it first. Please note that you will need to remove ISAPI_Rewrite before installing Ape as these two products use same configuration files and thus may conflict. And with Ape 'RewriteEngine On' directive is obligatory for every .htaccess file you are using mod_rewrite in.
You may benefit from upgrading to Ape because this product offer much more than just URL rewriting. You can also use it for compression and caching, to improve site performance, to password protect resources or to protect web applications from bot attacks and DDoS. You can find more about Helicon Ape here: https://www.helicontech.com/ape/

User avatar
Posts: 13
Joined: 21 May 2015, 17:54

Re: Issue for FORCE LOWER-CASE URLS

14 Jan 2016, 08:07

Hi Trial,
I have download the Helicon Ape of Trial, and test it. and use the above rule. the query string value is still change "?query=test%20ape" to "?query=test%2520ape"

the % will be %20, would you know the reason?

Thanks.

User avatar
Posts: 7
Joined: 16 Oct 2015, 03:30

Re: Issue for FORCE LOWER-CASE URLS

19 Jan 2016, 07:53

Hi Yaroslav,
can you let me know how to display the querystring value correctly?

Thanks

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 27 guests