Issue for FORCE LOWER-CASE URLS
5 posts
• Page 1 of 1
Issue for FORCE LOWER-CASE URLS
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.
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.
Re: Issue for FORCE LOWER-CASE URLS
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
e.g. http://mySite.com/Search?query=the%20page&pageindex=2
I want
http://mysite.com/search?query=the%20page&pageindex=2
Thanks,
Gan
Re: Issue for FORCE LOWER-CASE URLS
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/
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/
Re: Issue for FORCE LOWER-CASE URLS
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.
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.
Re: Issue for FORCE LOWER-CASE URLS
Hi Yaroslav,
can you let me know how to display the querystring value correctly?
Thanks
can you let me know how to display the querystring value correctly?
Thanks
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests