Welcome Guest, Not a member yet? Register   Sign In
.htaccess stops css from loading
#1

[eluser]jblack199[/eluser]
Okay so I've been working on this admin script im working on (just starting it really) and i've set my site up to remove the index.php from the url however i think because of that it's causing my css to now load...

When I visit my site http://name.domain.com/adm it automatically checks if I am logged in and if my account is still a valid user in the database. If i'm not logged in, or i'm not a valid user is redirects me to http://name.domain.com/adm/login

adm is a folder inside my controllers and my view folders. In the adm folder thats in the view, I have another subfolder called templates which holds template.php, header.php and footer.php

my header.php:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;link href="&lt;?php echo base_url();?&gt;css/adm/style.css"  type="text/css" media="screen" charset="utf-8"/&gt;
&lt;/head&gt;

&lt;body&gt;

This is working just as it should as in it links to the correct location: http://name.domain.com/css/adm/style.css

Problem is, it doesnt actually load the stylesheet and I think it has something to do with my .htaccess

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

Any help on figuring that out would be awesome.. thanks -- if you need any other files of code let me know and i'll post that up as well...


Messages In This Thread
.htaccess stops css from loading - by El Forum - 08-07-2011, 01:02 PM
.htaccess stops css from loading - by El Forum - 08-07-2011, 01:16 PM
.htaccess stops css from loading - by El Forum - 08-09-2011, 12:03 AM
.htaccess stops css from loading - by El Forum - 08-09-2011, 06:32 AM
.htaccess stops css from loading - by El Forum - 08-09-2011, 10:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB