CodeIgniter Forums

Full Version: index.php vs index.php?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Beginers[/eluser]
Hi guys im just curious about this two index.php and index.php?
at first i used the index.php but this does not load properly the image so i add ? after index.php so it works properly but then i dont want to show index.php? in the url cuz i looks silly in the url so i remove it using htaccess. after removing the index.php? in the url my page again does not load properly the css file why? pls help.

El Forum

[eluser]Beginers[/eluser]
while for your answer i google and i fount this and it really works.
i just add <?php echo base_url();?> in my css file Thanks..

El Forum

[eluser]Captain_Fluffy_Pants[/eluser]
to remove index.php from urls. go to app then click on config remove index.php from
Code:
$config['index_page'] = 'index.php';
after that it will look like
Code:
$config['index_page'] = '';