CodeIgniter Forums
cannot access css files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: cannot access css files (/showthread.php?tid=29046)



cannot access css files - El Forum - 03-29-2010

[eluser]dsi[/eluser]
i have created a css files but cannot link to the view file. I tried with direct url link too("http://localhost/site/css/login.css") but doesnot take that css. I have used htaccess for url rewriting, is it affecting the situation. My css folder is inside the root folder. What should i do to resolve that problem?


cannot access css files - El Forum - 03-29-2010

[eluser]eoinmcg[/eluser]
Try pasting your .htaccess or even better try out the one in the wiki - it works fine:
http://codeigniter.com/wiki/mod_rewrite/


cannot access css files - El Forum - 03-29-2010

[eluser]Clifford James[/eluser]
Try putting this in your .htaccess file.

Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d



cannot access css files - El Forum - 03-29-2010

[eluser]Zack Kitzmiller[/eluser]
Yeah, paste in your Directory Structure and .htaccess file.


cannot access css files - El Forum - 03-29-2010

[eluser]dsi[/eluser]
yeah the css file has loaded but it does not hide index.php anymore. When i type "http://localhost/site/" it loads the index page but if i type "http://localhost/site/login" it redirects to wamp home page. How do i load the login controller without typing the index.php ?