i'm having big problem of removing added numbers appears in urls after redirection http https. example, url http://www.quickinfo.co.il/page/804/?s=%d7%a7%d7%9f redirects https://www.quickinfo.co.il/page/804/?s=%25d7%25a7%25d7%259f. can see additional "25" getting added after every "%". tried every thing remove still no luck (redirects don't seem work here).
my htaccess redirects http https looks this:
rewritecond m%{http_host} ^quickinfo.co.il$ [or] rewritecond %{http_host} ^www.quickinfo.co.il$ rewritecond %{https} off # first rewrite https: # don't put www. here. if there included, if not # subsequent rule catch it. rewriterule .* https://%{http_host}%{request_uri} [l,r=301] # now, rewrite request wrong domain use www. rewritecond %{http_host} !^www\. rewriterule .* https://www.%{http_host}%{request_uri} [l,r=301]
maybe that's causing problem?
as @starkeen said, issue "%" character being escaped.
you should add ne
flag rewrite rule.
rewritecond m%{http_host} ^quickinfo.co.il$ [or] rewritecond %{http_host} ^www.quickinfo.co.il$ rewritecond %{https} off # first rewrite https: # don't put www. here. if there included, if not # subsequent rule catch it. rewriterule .* https://%{http_host}%{request_uri} [ne,l,r=301] # now, rewrite request wrong domain use www. rewritecond %{http_host} !^www\. rewriterule .* https://www.%{http_host}%{request_uri} [ne,l,r=301]
Comments
Post a Comment