Jump to:

520 Posts in 248 Topics by 263 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Page View bad redirect only for home page

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1518 Views
  • speedofmac
    Avatar
    Community Member
    10 Posts

    Page View bad redirect only for home page Link to this post

    I've read a number of posts, but I haven't been able to find one exactly like this. Whenever I try to view my home page, I get a Page Not Found error. The Page View: Draft Site and Published Site both try to view my homepage as "index.php/?stage=Live", which doesn't work. "index.php/home?stage=Live" also doesn't work.

    These do, however:

    /index.php?stage=Live
    /?stage=Live

    This only seems to be the problem when my homepage is named "home". If I change the name to "home2", everything works fine, and the page view directs to "index.php/home2/?stage=Live" just fine. If I change the name to "home", however, I get the same problem. I've tried with a fresh version of SilverStripe, a new SQL database, flushing my SilverStripe installation, flushing cookies, and just in case, I tried it in three different browsers. I also tried setting this page to be the 'home page' of its installation directory. (It would be nice if SilverStripe provided examples for how these should be formatted: whether to include the "http://", "www", and so on.)

    It seems like it should be an easy fix, but I don't know my way around php very well. Can someone point me in the right direction?

  • danny
    Avatar
    Community Member
    2 Posts

    Re: Page View bad redirect only for home page Link to this post

    I have the same problem on the live site but not on my localhost. The live site does not seem to have url-rewriting enabled. maybe it is unrelated.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Page View bad redirect only for home page Link to this post

    Doesn't sound too healthy - sounds like a mod_rewrite not enabled issue or you have some 'junk' in your Sitetree check you default home page exists in the Sitetree with the urlsegement 'home'

    1518 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.