title: htaccess rules differs in local and live server
body: <p>I have PHP oscommerce website, in which I have used htaccess for url rewriting to hide file names, now the problem i am facing is that my local server cannot replicate the htaccess as it should be doing, It is working perfect in live site..</p>
  
  <p>Can some suggest what could be the reason? </p>
  
  <blockquote>
    <p><strong>EDITED</strong></p>
  </blockquote>
  
  <p>Below Is the htaccess rewrite rule i am using, i have replaced my original sites name with "mydomain" for security purpose:</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{HTTP_HOST} ^mydomain.com [NC] 
  RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]  
  
  #INDEX PAGE
  #----------
  RewriteRule http://www.mydomain.com/index\.html  http://www.mydomain.com/ [R]
  RewriteRule http://www.mydomain.com/index\.php  http://www.mydomain.com/ [R]
  RewriteRule ^index.html index.php [NC]
  
  
  #STATIC PAGES
  #------------
  RewriteRule ^about-us.html information.php?info_id=1 [NC]
  RewriteRule ^faqs.html information.php?info_id=8 [NC]
  RewriteRule ^contact-us.html contact_us.php?info_id=9 [NC]
  RewriteRule ^terms-and-conditions.html information.php?info_id=10 [NC]
  RewriteRule ^privacy-policy.html information.php?info_id=3 [NC]
  
  #RewriteRule ^we-design-your-banner-free.html information.php?info_id=11 [NC]
  RewriteRule ^vinyl-banner-samples.html vinyl_banner_sample.php [NC]
  RewriteRule ^art-specifications.html art_specification.php [NC]
  RewriteRule ^sitemap.html sitemap.php [NC]
  
  
  #checkout - my account pages
  #---------------------------
  #RewriteRule ^account.html account.php?$1 [NC]
  #RewriteRule ^checkout.html checkout.php?$1 [NC]
  </code></pre>
  
  <p>Now the problem goes like this:</p>
  
  <p>I have a link which is like:</p>
  
  <pre><code>&lt;a href="/about_us.html" title="About Us" class="footertext_link"&gt;About Us&lt;/a&gt;
  </code></pre>
  
  <p>Now in local machine when i click this link I am navigated to url </p>
  
  <pre><code>http://192.168.1.55/about_us.html
  </code></pre>
  
  <p>rather it should be navigated to </p>
  
  <pre><code>http://192.168.1.55/mydomain/about_us.html
  </code></pre>
  
  <p>expected url is available on live server according to its domain name, but on local I get Page not found..</p>
  
  <p>Please help</p>