X xsupportstaff Member Apr 22, 2015 #1 Apr 22, 2015 #1 I need to redirect all https traffic to http. But when i put rule for this in htaccess it is not working. But all other rules including deny rules are working
I need to redirect all https traffic to http. But when i put rule for this in htaccess it is not working. But all other rules including deny rules are working
X xsupportstaff Member Apr 22, 2015 #3 Apr 22, 2015 #3 RewriteEngine On RewriteCond %{SERVER_PORT} 443 RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] this is the rule i have used
RewriteEngine On RewriteCond %{SERVER_PORT} 443 RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] this is the rule i have used
N NiteWave Administrator Apr 23, 2015 #4 Apr 23, 2015 #4 tested with 4.2.23 in .htaccess, above rules works as expected. using #curl -k -I https://youdomain.com to test. note: above rules should put at the beginning of .htaccess, otherwise it may not be reached.
tested with 4.2.23 in .htaccess, above rules works as expected. using #curl -k -I https://youdomain.com to test. note: above rules should put at the beginning of .htaccess, otherwise it may not be reached.