renaming index.php / making a site go public?

Author Message

Jan Fuelscher

Wednesday 16 August 2006 1:29:48 am

Hi all

This is probably a new user question: Is it possible to rename index.php to something else, e.g. indextest.php?

Background: I want to install ez Publish at its final destination, configure the site using indextest.php and then make it public by renaming indextest.php to index.php. Any idea whether that's still not possible (I found a forum entry of 2003 saying it's not advisable to rename index.php)?

If that's not possible: What's the preferred method of going life with a site?

Thanks
Jan

Clemens T

Wednesday 16 August 2006 1:36:18 am

I'd say, use: .htpasswd for protecting your directory and remove it when you 'go live'.

If you want to rename your index.php file, I think you have to change the redirections in .htaccess as well (off the head).

Greets,
Clemens

Jan Fuelscher

Wednesday 16 August 2006 2:56:27 am

Thanks for the quick reply.

Maybe I need to explain a bit more. I currently have a number of sites using PHP/MySQL and, of course, using index.php as main entry. I'd like to move them to Ez over time.

However, I don't see yet a way how to achieve this without a complicated directory move, so I had the idea of just using a different index.php, e.g. index-ez.php. I then could implement the site with eZ, have my users starting to fill it with content, etc.

Once we're finished, I just remove the old index.php and rename index-ez.php to index.php. I'd have very little downtime and almost no risk of something going wrong.

Is this possible? Or is there a better way?

Jan Fuelscher

Wednesday 16 August 2006 2:58:22 am

... or I could rename my current index.php to index-old.php, adjust .htaccess and then go life with a quick fix to .htaccess...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.