Page 1 of 1

changing the name of index.php

Posted: Wed Mar 21, 2007 9:22 pm
by orang
Hej,

I would like to have a frontpage before going directly into my blog, so I changed the name of index.php to index2.php.
But of course the content of the BaseUrl-variable is now wrong, which the css-stylesheets-link needs now. Where in this bundle of scripts can I found where these variables are set? Does anybody know that?

Would be happy for some help

Thank you
Stefan

Re: changing the name of index.php

Posted: Thu Mar 22, 2007 10:42 am
by garvinhicking
Hi!
I would like to have a frontpage before going directly into my blog, so I changed the name of index.php to index2.php.
You can't do that, Serendipity depends on that and you would have to change many places.

Instead look up the technical documentation regarding the "embedded mode" and the "IndexFile" s9y configuration option.

The other way would be for you to create a "index.html" file instead, edit your .htaccess to use "DirectoryIndex index.html /index.php" (or "/path/to/your/s9y/index.php). If you are using mod_Rewrite, you will also need to add a

Code: Select all

RewriteCond !^.*index\.html.*$ %{REQUEST_URI}
before the two RewriteRules that affect index.html matches.

Best regards,
Garvin

Posted: Thu Mar 22, 2007 12:33 pm
by orang
Hi,

thank you very much for your help, Garvin. The second solution worked for me very well.

thx & regards
Stefan