Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Problem with SSL Redirects

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

Page: 1
Go to End
Author Topic: 1660 Views
  • timp
    Community Member
    4 Posts

    Problem with SSL Redirects Link to this post


    we're building a site using silverstripe 2.3.3, but we've ran into a problem with ssl redirects for some page types.

    we have
       function init() {

          // causes a HTTP Redirect if in Non-SSL mode

          // Avoid that all pages are linked as SSL

       public function absoluteBaseUrlWithoutSSL() {
          $base =dirname(dirname($_SERVER['SCRIPT_NAME']));
          $base = Director::absoluteURL($base);

          if(preg_match('/^https\:\/\//i', $base)) $base = preg_replace('/^https\:\/\//i', 'http://', $base);
          $base .= '/';

          return $base;
    in the controller for the page type, and have


    in mysite/_config.php, but when i try to access the page, i get a page saying

    "Your browser is not accepting header redirects

    Please click here"

    has anyone ran into this before? or know how to fix it?


  • socks
    Community Member
    190 Posts

    Re: Problem with SSL Redirects Link to this post

    I experienced the same "Your browser is not accepting header redirects" issue and would like to know if there's an answer. It also appears in the DataObjectManager pop-up window when adding new objects.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.