changing the name of index.php

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
orang
Regular
Posts: 23
Joined: Wed Aug 16, 2006 9:03 am

changing the name of index.php

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: changing the name of index.php

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
orang
Regular
Posts: 23
Joined: Wed Aug 16, 2006 9:03 am

Post by orang »

Hi,

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

thx & regards
Stefan
Post Reply