Jump to content

auto redirect admin to https


Recommended Posts

Hi,

 

We are upgrading from 1.4.0.17 to 1.4.4.

 

In 1.4.0.17 we were automatically redirected to a secure login page when logging into the admin area.

for example. if we typed in http://path-to-prestashop/admin it would automatically redirect to the secure page at https://path-to-prestashop/admin

 

Now, it does not automatically redirect to the secure page.

On the unsecure http: page there is an error:

There is 1 error

SSL is activated. However, your IP is allowed to use unsecure mode (Maintenance or local IP).

 

The shop is not live yet, and I am in maintenance mode, but shouldn't it go to a secure page anyway?

 

If so, how do I get it so that it automatically redirects to the secure page when logging into the admin area?

Thank you!

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 weeks later...

I can't see any problem. Isn't it better to have the option to log in with or without SSL than forcing it? You can simply use https:// in the URL to use SSL. If you must force it, I suppose you could try editing your .htaccess file and adding a rule like this:

 

RewriteCond %{http_host} ^yourdomain.com/your-admin [nc]
RewriteRule ^(.*)$ https://www.yourdomain.com/your-admin/$1 [r=301,nc]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...