Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Admin Redirecting to HTTPS


Go to End


2 Posts   1855 Views

Avatar
cachobong

Community Member, 9 Posts

10 April 2013 at 6:28pm

When I try to access http://mysite.com/admin it redirects to https://mysite.com/Security/login?BackURL=%2Fadmin

I don't want it to go to HTTPS. How do i disable/disallow redirecting to HTTPS when I access the Admin Page?

Avatar
Sean

Forum Moderator, 922 Posts

11 April 2013 at 10:43am

Edited: 11/04/2013 10:43am

HTTPS redirection isn't on by default.

However, you might have Director::forceSSL() enabled somewhere in the code, e.g. in mysite/_config.php.

If not, then maybe you have some custom .htaccess rules or your host is redirecting requests to HTTPS for specific URLs.