Question

Locked

Redirect http to https with a condition

By sesblue ·
Hello,
I am new at this, but I have been trying to redirect http request to my web server to https. The address is http://myweb.com which using (in .htaccess)
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://myweb.com/ redirects well all request to https.
However I have other requests to http://myweb.com/storage that get redirected to https://myweb.com (instead of https://myweb.com/storage) which I know is due to the above Redirect statements. Can anyone help in defining the right condition statements that can help me redirect http requests to the right https page.
Thanks.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums