Rename the Index File

Nova 1 Tutorial

Nova is incredibly flexible and allows admins to change the name of the file used to access the system. Changing the index file of the application is pretty straightforward.

The Scenario

You are running an RPG called USS Enterprise on your own web space. You decide one day that you'd like to have a splash page that users go to before going to your site, but you don't want to screw around with a .htaccess file.

The Steps

1. Rename the index file

You can rename the index file to whatever you want provided the file is still a PHP file. In this case, we're going to rename the file to enterprise.php so our splash page can be index.php.

2. Change the index page variable

Open application/config/config.php and find the variable $config['index_page']. Now, we're going to change the content in quotes to the name of our file, including the .php extension. In the end, our variable should look like this:

$config['index_page'] = 'enterprise.php';

3. Save and upload

Save the config.php file and upload it to your server, overwriting the existing one. Next time we navigate to our site, we'll need to use the enterprise.php file instead of index.php. We can now develop our splash page at index.php so that users see that first before they get to our site.

Log in with your AnodyneID to rate this article or submit the article for review.