Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

Redirect problem


Reply

8 Posts   1281 Views

Avatar
fredrikhh

23 November 2008 at 5:43am (Last edited: 23 November 2008 5:43am), Community Member, 7 Posts

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 :)

Avatar
fredrikhh

23 November 2008 at 12:40pm Community Member, 7 Posts

somewhone ? Pliz help

Avatar
fredrikhh

24 November 2008 at 1:16am Community Member, 7 Posts

Can somewhone pliz help me ?

Avatar
jam13

24 November 2008 at 3:26am 121 Posts

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?

Avatar
fredrikhh

24 November 2008 at 4:19am (Last edited: 24 November 2008 4:24am), Community Member, 7 Posts

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.

Avatar
fredrikhh

24 November 2008 at 8:19am Community Member, 7 Posts

Yes? hello, do somewhone know?

Avatar
jam13

24 November 2008 at 10:54am 121 Posts

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 ###

Avatar
fredrikhh

24 November 2008 at 10:58am Community Member, 7 Posts

Thanks, it worked :)