Jump to:

22997 Posts in 11853 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Redirect loop when visiting level 3 pages

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 839 Views
  • purplespider
    Avatar
    Community Member
    80 Posts

    Redirect loop when visiting level 3 pages Link to this post

    I'm starting to panic a bit, as I've just copied a SilverStripe site across to the client's hosting account, due to go live tomorrow morning, but a bug has appeared that didn't happen on my staging account:

    Basically, upon trying to access a page on the site which is on the 3rd level, for example:
    www.example.com/page1/page2/page3
    It goes into a constant redirect loop:
    www.example.com/page1/page1/page1/page1/page1/page1/page1/page1/page1/page2/page3
    until the browser catches it and kills it with a redirect loop error.

    If I turn off nested pages it works fine. I've got no redirects setup in the code, I've tried clearing the cache and flushing etc, but I can't get rid of it!

    Any ideas?

    Many Thanks
    James

  • purplespider
    Avatar
    Community Member
    80 Posts

    Re: Redirect loop when visiting level 3 pages Link to this post

    This is really starting to baffle me now:

    • Tried a fresh SS install, created a level 3 page, redirect loop still appears
    • Removed .htaccess file and accessed a level 3 page using index.php, loop still happens!
    • Tried creating 3 sub folders on the server, visited the 3rd folder, redirect loop did NOT occur.

    This tells me that this is caused by a setting on the server that SilverStripe doesn't like, and that it's NOT a htaccess issue, but I might be wrong.

    Any ideas? Pulling my hair out here!

    Thanks

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Redirect loop when visiting level 3 pages Link to this post

    might be a corrupt sitetree in the database, i've had some strange things happen there - have you copied / upgraded / done stuff to the database? I've seen emtpy classnames but if I were you I'd check pages with parents in a circle loop - start with the urlsegments page1/page2 in your example.com - if you can start with a fresh site tree and see how that works out

  • purplespider
    Avatar
    Community Member
    80 Posts

    Re: Redirect loop when visiting level 3 pages Link to this post

    Thanks, I've had a quick look through the SiteTree table but can't see anything odd.

    But the strange this is, I tried a fresh SS install, dropping the old database, and upon creating a level 3 page in the CMS, and trying to access it I had the same problem.

    The only thing I can think it could be is a strange issue with the host, but I don't know what!

    839 Views
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.