im confused. |
[eluser]tonyhh[/eluser]
So im new with this framework and MVC all together, I have this code: Code: <?=base_url();?>style/style.css http://localhost/ci/application/style/style.css and here's my config Quote:$config['base_url'] = 'http://localhost/ci/What am I doing wrong with the urls?
[eluser]John_Betong_002[/eluser]
Try this: Code: <?php
[eluser]tonyhh[/eluser]
The css refuses to show up, even if the base url is http://localhost/ci/application/ or http://localhost/ci/ and when I used that code above, it just outputted the base url with /style/style.css
[eluser]tonanbarbarian[/eluser]
view the source of the resulting page and copy and paste the exact link it is creating here and someone may be able to work out what it is doing wrong based on that
[eluser]tonyhh[/eluser]
Fixed using: RewriteEngine On RewriteBase /ci/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /ci/index.php/$1 [L] |
Welcome Guest, Not a member yet? Register Sign In |