Question
Thread display: Collapse - |
All Answers
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Redirect http to https with a condition
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.