Move Fuel based site out of subfolder and multiple index.php files

edited April 2014 in Installation
Ok so I have a site built with Fuel and I need to move some files. In the Fuel folder which holds an application, codeignitor, crons, data_backup, fonts, etc folders there is an index.php file which has this code, <?php
header('Location: dashboard');.

Outside of this folder is another index.php file which has this code,
<?php
/*
*---------------------------------------------------------------
* FUEL INSTALL DIRECTORY
*---------------------------------------------------------------

My question is if I move all the folders and files outside of the fuel directory, including the index.php file, into my root directory will that cause any problems? Does the file with header(Location:'dashboard') need to be on the server? If not, does the index.php file with the Fuel Install Directory need to exist?

Comments

  • edited 4:48AM
    That fuel/index.php file is there because if you go to the following url, it will redirect to the FUEL login page. This is because the directory exists and the .htaccess won't pick it up and route it to the main CI index.php bootstrap file:
    http://localhost/fuel
Sign In or Register to comment.