My path to media folder (css) worked fine on localhost but on live server it does not recognize it. All I changed was system and application path in index.php to website/system and website/application. URL-helper is auto-loaded. Base_url is set to http://website.com/
Here is the folder structure:
Root-Folders: Apache Logs, Error Logs, Website
Website-Folders: Application, Media, System
Media-Folders: css
CSS-File: style.css
Here is e.g. my css inclusion:
<link rel="stylesheet" type="text/css" href="<?php echo base_url('media/css/style.css'); ?>" />
When I include the css internally it works so it is definetly a path-issue. I tried several things with base_url but yeah no success. Thanks for any help!
My .htaccess file:
Options -Indexes
Options +FollowSymLinks
# Set the default file for indexes
DirectoryIndex index.php
php_flag short_open_tags on
<IfModule mod_rewrite.c>
# mod_rewrite rules
RewriteEngine on
# The RewriteBase of the system (if you are using this sytem in a sub-folder).
#RewriteBase /cmp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .$ index.php/$1 [L,QSA]
</IfModule>
# If Mod_ewrite is NOT installed go to index.php
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
You need to move the contents of the Website
folder to the root
and try once.