title: External CSS file is not loading in the browser
body: <p>So first of all, I want to preface by saying I am very new to programming so forgive me if I don't follow as quickly. </p>
  
  <p>Now, I am having a problem that is really bothering me for the last few days and I have searched everywhere for a solution. </p>
  
  <p>I am using a WAMP server configuration. Everything has been working fine until I started working with CSS. I have an external CSS file. </p>
  
  <p>When I view my HTML page in Dreamweaver, I see that it is properly connecting to that CSS file. I can see the styles being applied in the Design view. However, when I view the page in the browser, Firefox says (in Error Console) that the .css file cannot be loaded because its MIME type is text/html and not text/css. </p>
  
  <p>So I figured this was a server configuration problem. What I did was the following:
  I went into the .HTACCESS file and added the following line:
  AddType text/css .css</p>
  
  <p>After restarting my server, this still did not solve the problem. For some reason, the browser keeps reading my css file as an html file. Any idea what could possibly going wrong here?</p>
  
  <p>Here's the head of the file I'm trying to load in the browser (it's actually a Smarty template):</p>
  
  <pre><code>&lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;link rel="stylesheet" href="../htdocs/css/styles.css" type="text/css" media="all" /&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>Also, please note that I am coding using a Zend framework. 
  Here is my .HTACCESS file:</p>
  
  <p>RewriteEngine on</p>
  
  <p>RewriteCond %{SCRIPT_FILENAME} !-f</p>
  
  <p>RewriteCond %{SCRIPT_FILENAME} !-d</p>
  
  <p>RewriteRule ^(.*)$ index.php/$1</p>
  
  <p>AddType text/css .css</p>
  
  <p>So I took the advice of DA and clicked on View Page Source when viewing the page in browser and clicked on the link to my CSS file. This is what it shows me:  </p>
  
  <p>When I click on link, I see this: </p>
  
  <pre><code>&lt;br /&gt;
  &lt;font size='1'&gt;&lt;table class='xdebug-error' dir='ltr' border='1' cellspacing='0'  cellpadding='1'&gt;
  &lt;tr&gt;&lt;th align='left' bgcolor='#f57900' colspan="5"&gt;&lt;span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'&gt;( ! )&lt;/span&gt; Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in C:\shaancode\www\phpweb20\htdocs\Zend\Controller\Dispatcher\Standard.php on line &lt;i&gt;248&lt;/i&gt;&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th align='left' bgcolor='#f57900' colspan="5"&gt;&lt;span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'&gt;( ! )&lt;/span&gt; Zend_Controller_Dispatcher_Exception: Invalid controller specified (error) in C:\shaancode\www\phpweb20\htdocs\Zend\Controller\Dispatcher\Standard.php on line &lt;i&gt;248&lt;/i&gt;&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th align='left' bgcolor='#e9b96e' colspan='5'&gt;Call Stack&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th align='center' bgcolor='#eeeeec'&gt;#&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Time&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Memory&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Function&lt;/th&gt;&lt;th align='left' bgcolor='#eeeeec'&gt;Location&lt;/th&gt;&lt;/tr&gt;
  
  &lt;tr&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;1&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;0.0006&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='right'&gt;382488&lt;/td&gt;&lt;td bgcolor='#eeeeec'&gt;{main}(  )&lt;/td&gt;&lt;td title='C:\shaancode\www\phpweb20\htdocs\index.php' bgcolor='#eeeeec'&gt;..\index.php&lt;b&gt;:&lt;/b&gt;0&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;2&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='center'&gt;0.0892&lt;/td&gt;&lt;td bgcolor='#eeeeec' align='right'&gt;4748936&lt;/td&gt;&lt;td bgcolor='#eeeeec'&gt;Zend_Controller_Front-&gt;dispatch(  )&lt;/td&gt;&lt;td title='C:\shaancode\www\phpweb20\htdocs\index.php' bgcolor='#eeeeec'&gt;..\index.php&lt;b&gt;:&lt;/b&gt;42&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;&lt;/font&gt;
  </code></pre>