Answers.Body: <p>Try going to yoursite.com/index.php/(pagename). If that works, check out this article on how to remove it: <a href="https://craftcms.com/support/remove-index.php" rel="noreferrer">https://craftcms.com/support/remove-index.php</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-03T20:29:07.397Z
Answers.Text: Adding index.php did indeed make it go to the page. Turns out there is already a htaccess file with the contents as that doc says in there. Removing it doesn't help either...
Answers.UserDisplayName: Davers
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-03T20:43:00.033Z
Answers.Text: ahhh solved it. It was me being a bit of a fool. The file was htaccess and not .htaccess, so the rewrite wasnt getting added. Thanks, that article pointed me in the write direction.
Answers.UserDisplayName: Davers
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-03T19:18:53.703Z
Answers.LastActivityDate: 2016-11-03T19:18:53.703Z
Answers.UserDisplayName: strandall
Answers.Body: <p>I had the same problem with a different CMS and it was because my Apache couldn't read an .htaccess due to not having the rewrite module enabled.</p>
  <p>If you want to enable <code>mod_rewrite</code> for you MAMP installation you need to do the following:</p>
  <ul>
  <li>Locate your MAMP folder install, mine is in <code>/Applications/MAMP</code> so I'll use that but replace the comment with yours</li>
  <li>Open <code>/Applications/MAMP/conf/apache/httpd.conf</code></li>
  <li>Search for <code>LoadModule rewrite_module modules/mod_rewrite.so</code></li>
  <li>If it's disabled it should have a comment in front of it like so <code>#LoadModule rewrite_module modules/mod_rewrite.so</code></li>
  <li>Remove the comment so the line is <code>LoadModule rewrite_module modules/mod_rewrite.so</code></li>
  <li>Save the file</li>
  <li>Restart the MAMP server and it should be enabled now</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-12-29T22:40:48.897Z
Answers.LastActivityDate: 2024-12-29T22:40:48.897Z
Answers.UserDisplayName: Mugur 'Bud' Chirica
Body: <p>I've cloned an existing Craft site into MAMP Pro, set up my database in sequel pro and am able to access the site's homepage when I go to the URL I set up in MAMPS hosts. But whenever I click on a link, or try to access /admin, I get the following</p>
  
  <blockquote>
    <p>Not Found<br>
    The requested URL /(page name) was not found on this server.</p>
  </blockquote>
  
  <p>I'm sure it's something simple, probably something I'm missing when I set up the site locally, but I'm at a loss. </p>
  
Tags: <url><mamp>
Title: The requested URL was not found on this server
ThreadText: # The requested URL was not found on this server
  
  (Asked by: username_0 on 2016-11-03)
  
  I've cloned an existing Craft site into MAMP Pro, set up my database in sequel pro and am able to access the site's homepage when I go to the URL I set up in MAMPS hosts. But whenever I click on a link, or try to access /admin, I get the following
  
  > Not Found  
  > The requested URL /(page name) was not found on this server.
  
  I'm sure it's something simple, probably something I'm missing when I set up the site locally, but I'm at a loss.
  
  **Tags:** url, mamp
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-11-03. Score: 5 | Accepted answer
  
  Try going to yoursite.com/index.php/(pagename). If that works, check out this article on how to remove it: <https://craftcms.com/support/remove-index.php>
  
  > **Comments:**
  > **username_0**: Adding index.php did indeed make it go to the page. Turns out there is already a htaccess file with the contents as that doc says in there. Removing it doesn't help either...  
  > **username_0**: ahhh solved it. It was me being a bit of a fool. The file was htaccess and not .htaccess, so the rewrite wasnt getting added. Thanks, that article pointed me in the write direction.  
  
  ---
  
  ### Answer by username_2 on 2024-12-29. Score: 0
  
  I had the same problem with a different CMS and it was because my Apache couldn't read an .htaccess due to not having the rewrite module enabled.
  
  If you want to enable `mod_rewrite` for you MAMP installation you need to do the following:
  
  * Locate your MAMP folder install, mine is in `/Applications/MAMP` so I'll use that but replace the comment with yours
  * Open `/Applications/MAMP/conf/apache/httpd.conf`
  * Search for `LoadModule rewrite_module modules/mod_rewrite.so`
  * If it's disabled it should have a comment in front of it like so `#LoadModule rewrite_module modules/mod_rewrite.so`
  * Remove the comment so the line is `LoadModule rewrite_module modules/mod_rewrite.so`
  * Save the file
  * Restart the MAMP server and it should be enabled now
  
  
  ---
  
  