Friday, June 14, 2013

Remove Public from URL



You have to copy all the files from "public" into the "root" folder of site, like css, jquery or images folders and index.php (you simply put them outside) and then customize your index.php file appropriately, for example:

Old Code:-

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../zend_app/application'));



New Code:-

Modify index.php a little bit

defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));

No comments:

Post a Comment