title: The requested URL was not found on this server. .htaccess (MAMP)
body: <p>I know there are a lot of questions similar to this asked in the past, but I have looked through all of them and none of them are the same as this.</p>
  
  <p>I have a been developing a Magento site on MAMP. I made several backups of the files and database. I moved the site to my live server, everything worked. I have now moved the site back to MAMP for more development. The Home Page works but the rest of the site gives a 'Not Found. The requested URL was not found on this server' error.</p>
  
  <p>I tested to see if the database worked with one of my backups files (which had been saved before moving to the live server), and it did, which suggests that the problem is with the files I have moved over from my live server.</p>
  
  <p>I read numerous people mention editing the .htaccess file, so I decided to have a look. What I found is that the .htaccess file for the files that DO work open in the terminal window. And the .htaccess file for the files I moved from my live server and DON"T work open in a text editor file. There is also only one line of code in this file which is: #AddHandler application/x-httpd-php54 .php</p>
  
  <p>I do not know what this line of code means, however I have an idea of what might of happened.
  After I moved my site to my live server, I asked my hosts to update my PHP. (This was a silly thing to do as I have no knowledge of how PHP works, however I did it because I received a message in my Magento backend telling me that the new PHP was available, I thought I needed to update it to keep my site secure. I am very much a rookie still). My hosts updated it and my Live site stopped working. I asked them to change it back to the original PHP I had and they did. There was still a problem. They did not know how to fix the problem at first but then informed me that they had fixed it by following the solution in this link <a href="https://stackoverflow.com/questions/15850845/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuratio">Request exceeded the limit of 10 internal redirects due to probable configuration error</a> , which involves adding a .htaccess file to the root directory of my live server (/home/caprac5/public_html/.htaccess) and adding the following code:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
   RewriteEngine On
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>To me it seems like my hosts have added this .htaccess file to the root directory of my live server which allowed my site to work, however now that I have moved my website back to MAMP it no longer has this .htaccess file to make it work. I do not know if I should try adding this .htaccess file to the root directory of MAMP, or if anyone knows how to possibly fix the .htaccess file that is in the actual website folder.</p>
  
  <p>I hope people are able to follow what I am saying. If not please just leave a comment and I will try to explain better. </p>
  
  <p>Thanks</p>