Is it ok to rename the index.php

Permalink 2 users found helpful
Is it ok to rename the index.php to something else while I get the site content working then switch back to index.php. I did notice that when I did this the installation pages had no style, I don't know why.

QuantumInformation
 
Mnkras replied on at Permalink Reply
Mnkras
Well everything in concrete5 runs through concrete5, so if you are going to keep editing the site i do not recommend it,

you can always move it, i suggest you read this:

http://www.concrete5.org/index.php?cID=22638...

Mike
QuantumInformation replied on at Permalink Reply
QuantumInformation
Thanks, I can't seem to find the
/config/site.php file as mentioned in that post
Mnkras replied on at Permalink Reply
Mnkras
try an s after config

configs/site.php

ill fix that :)
QuantumInformation replied on at Permalink Reply
QuantumInformation
opps my mistake, there was that folder, just that it appeared after you install :)
codegen replied on at Permalink Reply
I have the same issue.
I want to rename index.php with concrete.php, but if i do that concrete5 desplays a page not found.

Where are the configuration places where I can do this?

Thanks

Paolo
codegen replied on at Permalink Reply
config/site.php does not contain such information.
globalnerds replied on at Permalink Reply
globalnerds
Do you have a reason for doing this? I do NOT suggest doing this as it could effect later concrete5 upgrades.

I have not done this, but you could try changing the following file:

concrete/config/base.php

there are a few lines in there that refer to the index.php file
globalnerds replied on at Permalink Reply
globalnerds
My suggestion is to create a sub directory and make your changes there, leaving your current site alone. For example, mysite.com/new

Disable pretty url's in your current site.
Copy all of your files and directories to the sub directory.

Create a new mysql database and export/import the data from the original site. You will then need to change the following file in the sub directory "new"

/new/config/site.php

In this file you will need to change the following:

define('DB_USERNAME', 'new-db-username');
define('DB_PASSWORD', 'new-db-password);
define('DB_DATABASE', 'new-db-database-name');
define('BASE_URL', 'http://www.mysite.com');
define('DIR_REL', 'new');


Once you are done copying everything from your regular site to the /new site, you can re-enable pretty urls in your current site.

Once you are done updating your "new" site you will have to do the same thing, disable pretty urls, move your "new" site to the root, change the config/site.php - the only line that needs to change here is:

define('DIR_REL', '');


Once all is done, don't forget to go to system maintenance in the dashboard and run all three of the items in the jobs tab.