<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>

CC BY-SA 3.0
2016-11-03T20:29:07.397Z
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...
Davers
CC BY-SA 3.0
2016-11-03T20:43:00.033Z
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.
Davers
CC BY-SA 3.0
2016-11-03T19:18:53.703Z
2016-11-03T19:18:53.703Z
strandall
<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>

CC BY-SA 4.0
2024-12-29T22:40:48.897Z
2024-12-29T22:40:48.897Z
Mugur 'Bud' Chirica
<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>

<url><mamp>
The requested URL was not found on this server
# 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


---

