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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -