Welcome Guest, Not a member yet? Register   Sign In
cannot access css files
#1

[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?
#2

[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/
#3

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

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

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

[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 ?




Theme © iAndrew 2016 - Forum software by © MyBB