w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Redirecting a specific https request to http

You can use this rule to redirect request for (HTTPS) search.php to it's (HTTP) search.php along with all the query parameters in the request.

RewriteCond %{HTTPS} =on
RewriteRule ^search.php$    http://%{HTTP_HOST}/search.php [R=301,L]

I would recommend placing this above all the non-redirectional rewrite rules on your .htaccess

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.