Images & css not loaded |
[eluser]Exolead[/eluser]
Hi , Please excuse my English, I’m not good at writing. Like some people in this forum, I have a problem with loading images and css into my views. I tried all solutions but I’m still having the same issue. The home page is loaded correctly if I use the simplified URL http://localhost/mysite or even http://localhost/mysite/index.php. But I get a problem with this url : http://localhost/ares/index.php/home, images and css don’t load. The main problem is that when I call this page : http://localhost/mysite/home/topic/1, images and css don’t work at all. Please, help me!! My .htaccess file : Options +FollowSymLinks Options -Indexes DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|resources|images|styles|js|robots\.txt|favicon\.ico) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L,QSA] config file: $config['base_url'] = "http://localhost/mysite"; $config['index_page'] = ""; $config['uri_protocol'] = "AUTO"; $config['rewrite_short_tags'] = TRUE; routes.php: $route['default_controller'] = "home"; in my httpd.conf: LoadModule rewrite_module modules/mod_rewrite.so <Directory "${path}/www"> Options Indexes FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all </Directory> These are my directories: -www ----mysite ----------images ----------styles ----------system ----------------application ---------------------------controllers --------------------------------------home.php ---------------------------views --------------------------------------home_view.php --------------------------------------topic_view.php ---------------------------models --------------------------------------home_model.php --------------------------------------topic_model.php --------------------------------------.... ---------------------------.... ----------.htaccess ----------favicon.ico ----------index.php Exemple of inserting images & the css file <link href="styles/main.css" rel="stylesheet" type="text/css" /> <img src="images/logo.jpg" alt="Mysite" /> |
Messages In This Thread |
Images & css not loaded - by El Forum - 02-16-2009, 04:36 AM
Images & css not loaded - by El Forum - 02-16-2009, 04:58 AM
Images & css not loaded - by El Forum - 02-16-2009, 06:30 AM
Images & css not loaded - by El Forum - 02-16-2009, 06:34 AM
Images & css not loaded - by El Forum - 02-16-2009, 07:06 AM
Images & css not loaded - by El Forum - 02-16-2009, 07:06 AM
Images & css not loaded - by El Forum - 02-16-2009, 07:11 AM
Images & css not loaded - by El Forum - 02-16-2009, 10:31 AM
|