I have a WordPress powered website and I am using following .htaccess
code to redirect all URLs from HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Well, it is working fine! But now I need to redirect only one page with QueryString 's'
to the non SSL (HTTP) one.
The structure of the URL is-
https://www.example.com/articles/?s={random_texts} (current)
and I want it to redirect to –
http://www.example.com/articles/?s={random_texts} (looking for)
Thanks to starkeen after a little modification I figured out the problem. Here is the code which resolved the query-
Try :
Clear your browser’s cache before testing this.