Hi This is my website link http://webscarlets.com/ci/welcome
I'm new to codeigniter. I removed the index.php from the url. To remove the index.php from url i used the following code. I get this code from the codeigniter user guide
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ /ci/index.php/$1 [L]
But the css is not loading. Here is my configuration settings
//autoload.php
$autoload['helper'] = array('url','form','html');
//config.php
$config['base_url'] = 'http://webscarlets.com/ci/';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
//constants.php
define("LAYOUT_URL","http://webscarlets.com/ci/");
//view.sphp
<link rel="stylesheet" type="text/css" href="<?php echo LAYOUT_URL; ?>css/all.css">
Please review my codes and guide to complete this task.
Thanks to all in advance.
base_url()so that you can sure about the URL.