Welcome Guest, Not a member yet? Register   Sign In
htaccess Help
#3

[eluser]Unknown[/eluser]
Hello

My apologies for not being clearer on this.

My htaccess file is as follows
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

which n0xie came back with on one of my earlier posts.

My view file has the following content
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="assets/css/main.css" rel="stylesheet" type="text/css" />
<link href="file.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="div1">Hello</div>
<div id="div2">Goodbye</div>
<img class="logo" src="/assets/images/logo.png" />


main.css has
body {
margin: 0px;
padding: 0px;
background-color:#FFFFCC;
}

#div1{
font-weight: bold;
font-size:26px;
color: red;
}

and file.css has
#div2 {
background-color: purple;
color: white;
height: 25px;
}

When I open the view I can see the image, the background color is correct and div1 is formatted as expected.
However the text in div2 is not formatted according to file.css. My guess is that this is because the htaccess file is looking for file.css in the assets folder.

The question therefore is what do I need to do to the htaccess file in order to get both the css in the assets folder applied, and the css in the same folder as the view applied?


Messages In This Thread
htaccess Help - by El Forum - 11-23-2009, 09:41 AM
htaccess Help - by El Forum - 11-23-2009, 11:13 AM
htaccess Help - by El Forum - 11-25-2009, 04:24 AM
htaccess Help - by El Forum - 11-25-2009, 08:37 AM
htaccess Help - by El Forum - 11-25-2009, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB