Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Redirect problem

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: 1239 Views
  • fredrikhh
    Avatar
    Community Member
    7 Posts

    Redirect problem Link to this post

    Hello, I installed Silverstripe, and it worked..
    But i think i deleted a file, so when i try to start my site, I get redirect to install.php..

    what is the problem ?

    Hope for help

  • fredrikhh
    Avatar
    Community Member
    7 Posts

    Re: Redirect problem Link to this post

    somewhone ? Pliz help

  • fredrikhh
    Avatar
    Community Member
    7 Posts

    Re: Redirect problem Link to this post

    Can somewhone pliz help me ?

  • jam13
    Avatar
    121 Posts

    Re: Redirect problem Link to this post

    If you previously had a working install, and it's now showing you the installer page, then I would guess that you had deleted your _config.php file. Have you not got backups?

  • fredrikhh
    Avatar
    Community Member
    7 Posts

    Re: Redirect problem Link to this post

    The config file is there, I dont have backup...

    But i think it is the .htaccess file or something...

    But I don`t know how to fix it.

  • fredrikhh
    Avatar
    Community Member
    7 Posts

    Re: Redirect problem Link to this post

    Yes? hello, do somewhone know?

  • jam13
    Avatar
    121 Posts

    Re: Redirect problem Link to this post

    The basic ss .htaccess file will be something like this:

    ### SILVERSTRIPE START ###
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    ### SILVERSTRIPE END ###

  • fredrikhh
    Avatar
    Community Member
    7 Posts

    Re: Redirect problem Link to this post

    Thanks, it worked

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