• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem loading CSS file with relative path

#7
[eluser]egunay[/eluser]
@mihaibaboi

Did you try to use absolute path?

"/system/application/views/css/main.css"

Ofcourse I don't know your virtual server configuration so if the "/" points to "D:\work\php\www\codeigniter\" you shouldn't be getting any problems.

Instead if "/" points to "D:\work\php\www\" you should also add your codeigniter folder to link href.
"/codeigniter/system/application/views/css/main.css"


Also check your .htaccess configuration. For example take a look at mine:

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ /index.php/$1 [L]

Hope it works for you.


Messages In This Thread
Problem loading CSS file with relative path - by El Forum - 04-09-2010, 02:29 PM
Problem loading CSS file with relative path - by El Forum - 04-09-2010, 05:32 PM
Problem loading CSS file with relative path - by El Forum - 04-10-2010, 12:35 AM
Problem loading CSS file with relative path - by El Forum - 04-10-2010, 01:25 AM
Problem loading CSS file with relative path - by El Forum - 04-10-2010, 02:27 AM
Problem loading CSS file with relative path - by El Forum - 04-10-2010, 02:50 AM
Problem loading CSS file with relative path - by El Forum - 04-26-2010, 01:50 AM
Problem loading CSS file with relative path - by El Forum - 04-26-2010, 01:55 AM
Problem loading CSS file with relative path - by El Forum - 04-26-2010, 02:02 AM
Problem loading CSS file with relative path - by El Forum - 04-26-2010, 04:10 AM
Problem loading CSS file with relative path - by El Forum - 04-26-2010, 04:30 AM
Problem loading CSS file with relative path - by El Forum - 04-26-2010, 04:35 AM
Problem loading CSS file with relative path - by El Forum - 04-26-2010, 10:26 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.