title: htaccess file from server to localhost server configuration
body: <p>I have a php application which is hosted in a server. Everything is working fine there. Now My work is to make some changes in the css files. So I just downloaded all the files along with the database from the server to my localhost(LAMP). In my localhost I have set all the username and password for the database. Now when I browse the page it showed just a blank page. After that I just checked there is <code>.htaccess</code> file.Now this htaccess file is configurde as the live server environment. Now I don't have any good idea about htaccess configuration. So can someone kindly help me to solve the htaccess redirect issue
  My <code>htaccess</code> code looks like this</p>
  
  <pre><code>&lt;IfModule mod_php4.c&gt;
  php_value session.use_trans_sid 0
  php_value session.cookie_time 3600
  php_value session.gc_maxlifetime 3600
  #php_value session.cookie_domain ".dummysite.com"
  &lt;/IfModule&gt;
  RewriteEngine On
  RewriteRule ^([a-zA-Z0-9_+-]+)\.html $1.php
  #RewriteRule 404\.shtml$ 404.php
  Options +SymLinksIfOwnerMatch
  RewriteBase /
  RewriteCond %{HTTP_HOST} .
  RewriteCond %{HTTP_HOST} !^www\. [NC]
  RewriteCond %{HTTP_HOST}&lt;&gt;%{REQUEST_URI} ^([A-Za-z0-9]+)\.dummysite\.com&lt;&gt;/([^/]*) 
  RewriteCond %1&lt;&gt;%3 !^(.*)&lt;&gt;\1$ [NC]
  RewriteRule   ^(.*)$ - [E=USER:%1]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{HTTP_HOST} !^www\. 
  RewriteCond %{HTTP_HOST} !^dummysite\.com 
  RewriteCond %{ENV:USER} ^(.+)$
  RewriteRule ^(.*) company_index.php?uid=%1
  
  RewriteCond %{HTTP_HOST} ^www\.([A-Za-z0-9]+)\.dummysite\.com 
  RewriteRule ^(.*) company_index.php?uid=%1
  
  RewriteRule categories\/([a-zA-Z0-9_+-]+)\.html browsecats.php?browse=$1
  RewriteRule categories\/([a-zA-Z0-9_+-]+)\/([0-9]+)\/([a-zA-Z0-9_+-]+)\.html browsecats.php?browse=$1&amp;cid=$2
  RewriteRule listings\/([a-zA-Z0-9_+-]+)\.html listings.php?browse=$1
  RewriteRule listings\/([a-zA-Z0-9_+-]+)\/([0-9]+)\.html listings.php?browse=$1&amp;pg=$2
  RewriteRule listings\/([a-zA-Z0-9_+-]+)\/([0-9]+)\/([a-zA-Z0-9_+-]+)\.html listings.php?browse=$1&amp;cid=$2
  RewriteRule listings\/([a-zA-Z0-9_+-]+)\/([0-9]+)\/([a-zA-Z0-9_+-]+)\/([0-9]+)\.html listings.php?browse=$1&amp;cid=$2&amp;pg=$4
  RewriteRule ^([a-zA-Z0-9_+-]+)\.htm$ $1.html
  </code></pre>
  
  <p>here dummy site is the website name. I have just replaced them. So can some one kindly tell me how to make setup this on my LAMP server?</p>