Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » home redirects to check-php.php

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 3144 Views
  • Thuva
    Avatar
    Community Member
    3 Posts

    home redirects to check-php.php Link to this post

    I have a fresh installation of SilverStripe 2.2.1. Everything went fine. My environment is MySQL5/PHP5.2/Apache2.

    Whenever I try to access home page by going to <site_root>/home/, I get redirected to check-php.php and end up with "page not found" error since I deleted installation files at the end of successful installation.

    I tried searching the forums and wiki with no luck. I would really appreciate any help.

    Thank you in advance.

    Regards,

    Thuva

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: home redirects to check-php.php Link to this post

    Hi there,

    Thankfully this issue is not so severe. I'm assuming you're using Safari, because I can replicate the exact same behaviour with that browser, but not with Firefox or IE.

    Easy fix: flush Safari's cache and restart.

    I've filed a bug here:

    http://open.silverstripe.com/ticket/2196

    Cheers,
    Sean

  • Thuva
    Avatar
    Community Member
    3 Posts

    Re: home redirects to check-php.php Link to this post

    The problem is fixed now. Thank you for the quick reply, Sean. I really appreciate that. I would need to deliver a SilverStripe project on Monday

    Thuva

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: home redirects to check-php.php Link to this post

    No problem! I hope the project turns out well!

    Cheers,
    Sean

  • tschunde
    Avatar
    Community Member
    3 Posts

    Re: home redirects to check-php.php Link to this post

    thanks! that was for me also a good hint....
    I had the same problem experience with safari 3.0 and osx 10.5.2

  • atschy
    Avatar
    Community Member
    1 Post

    Re: home redirects to check-php.php Link to this post

    i have the same problems but with Firefox and IE.

  • tim303
    Avatar
    Community Member
    3 Posts

    Re: home redirects to check-php.php Link to this post

    Although this bug is apparently slated for fixing in 2.4.0 (see Ticket #2196) the same problem with redirecting after installation seems to occur regardless of browser, not just in Safari (I should say I encountered on Firefox 3 (for Mac OSX), and when I loaded up safari (from which I did not do the install) the redirect worked ok). The ?flush=1 trick did not help. However, force quitting Firefox and then reloading the page with ?flush=1 appended did work (e.g.: http://localhost/silverstripe/?flush=1).

    A related and similar issue is that, after following the vanilla install procedure, when I point the browser to http://localhost/silverstripe without the trailing slash, I get a directory index. That can be fixed with a simple change to the .htaccess to prohibit directory indexing--however, that would give an error. Another solution would be by replacing an index.php with a meta-refresh header to http://localhost/silverstripe/ with the trailing slash. A better solution would be to rewrite the .htaccess rewrite engine commands to route attempts without a trailing slash correctly.

    Obviously allowing unwanted directory indexing after following your vanilla install instructions is a possible security issue and should be remedied, imho, asap.

    For the revised installation procedures, I would suggest having the install files in a subdirectory as done with wordpress or joomla.

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