arjanvr Posted March 25, 2015 Share Posted March 25, 2015 I have this redirect on my .htaccess file to make sure everyone is forwarded to https on both main and subdomains. Today I got word from a client that when he opens his invoice and clicks to download he simply is forwarded to my main page. I tested this and got the same experience. I use this: # BEGIN REWRITE SITEWIDE HTTP TO HTTPS # This will enable the Rewrite capabilities RewriteEngine On # This checks to make sure the connection is not already HTTPS RewriteCond %{HTTPS} !=on # This rule will redirect users from their original location, to the same location but using HTTPS. RewriteRule ^/?(.*) https://%{SERVER_NAME} [R=301,L] # END REWRITE SITEWIDE HTTP TO HTTPS How can I solve this matter and still have everyone redirected to https? I now removed this from .htaccess and I am able to download the invoice as normal. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted March 26, 2015 Share Posted March 26, 2015 try this htaccess command instead: RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.