url redirection - Forcing http on a url using .htaccess -
i'm using .htaccess force https on site , it's working fine. need force http on single url (example: http://www.website.com?o=com&t=send). don't know how ? i'm not sure how handle this.
please help....
you can use rule very first rule below rewriteengine on
line:
rewritecond %{https} off rewritecond %{the_request} !/\?o=com&t=send [nc] rewriterule ^ https://%{http_host}%{request_uri} [r=301,l,ne] rewritecond %{https} on rewritecond %{the_request} /\?o=com&t=send [nc] rewriterule ^ http://%{http_host}%{request_uri} [r=301,l,ne]
Comments
Post a Comment