htaccess setup

When your site is ready to go live, you will want to make the urls SEO friendly. By default IgnitedCMS automagically handles routing in a clean and concise way, but you will want to hide the /index.php which precedes all your controllers.


Remove index.php at the root/application/config/config.php


$config['index_page'] = '';



This can be achieved simply in two steps. First navigate to the main config file and remove index.php. Then you simply need to add a .htaccess file and upload it to the root of your web domain.


An example is shown below.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Please ensure your web server has mod_rewrite enabled for apache, instructions may vary depending on various server configurations.

laurel laurel

Join thousands of
satisfied customers

Try IgnitedCMS today!