Images, CSS, JS disappear on any controller, but home page |
[eluser]Zelf[/eluser]
No doubt this is a newbie question.... I am developing on my localhost. I have the following .htaccess file: RewriteEngine on RewriteBase /fortlewis/ RewriteCond $1 !^(index\.php|images|global_assets|robots\.txt) RewriteRule ^(.*)$ /fortlewis/index.php/$1 [L] In config.php $config['base_url'] = "http://localhost/mydirectory/"; $config['index_page'] = ""; When I access http://localhost/mydirectory/ all the images and css styling and javascript I have added to the view display no problems. When I go to http://localhost/mydirectory/othercontro...thermethod the images, css, etc disappear. The view displays. In page source on pages other than the default index page view I see a relative path to images, etc just like on the home page. What bit of information I am overlooking here that I need to configure? Also, If I turn off the .htaccess file and change config to: $config['base_url'] = "http://localhost/mydirectory/"; $config['index_page'] = "index.php"; I still get the same results. So obviously it is not the .htaccess file causing this and I am overlooking some other factor here. |
Welcome Guest, Not a member yet? Register Sign In |