Welcome Guest, Not a member yet? Register   Sign In
htacces takes me to localhost instead of removing index.php
#8

[eluser]behnampmdg3[/eluser]
[quote author="InsiteFX" date="1355887000"]Try this:
Code:
<link href="<?php echo base_url('css/styles.css'); ?>" rel="stylesheet" type="text/css" />

This is the correct way to use base_url()

Also check to make sure your config base_url is set correct, or leave it blank and CI will try to
figurre it out for you.
[/quote]Hello;

Thank you for your reply. Unfortunately it didn't work.
Code:
<link href="<?php echo base_url('css/styles.css');?>" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('css/home.css');?>" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('css/'.CSS.'.css');?>" rel="stylesheet" type="text/css" />

Still clicking on css link from the source takes me to 404!

base_ulr in cofig is blank, I checked that.

Please dont give up on me. Thank you



Messages In This Thread
htacces takes me to localhost instead of removing index.php - by El Forum - 12-19-2012, 12:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB