mod_rewrite redirect all to https except one file
问题 i use this code RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} to redirect all request to HTTPS and that is ok. Now I want same thing except one file index810.php when i write like this RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^ index810.php RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} i get too many redirects, any suggestions. Thank you in advance 回答1: A solution is to use a non rewriting rule: # do nothing for /index810.php RewriteRule