Yarin
Yarin

Reputation: 183499

Getting WordPress permalinks working on a MAMP install

I've got a local MAMP install of WordPress and am trying to get permalinks working. But when I click my links after setting permalink setting to 'Day and name' http://localhost/wordpress_1/2011/01/12/sample-post/

I get 404ed

Not Found: The requested URL /wordpress_1/2011/01/05/hello-world/ was not found on this server.

Is this a mod_rewrite issue? mod_rewrite is listed in the 'loaded modules' section of my phpinfo. Do I need to do something else to enable it?

Thanks

UPDATE:

From my httpd.conf:

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

Upvotes: 14

Views: 14063

Answers (2)

Yarin
Yarin

Reputation: 183499

Changed my httpd.conf from

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

To

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride All
</Directory>

And it works.

Upvotes: 29

Highway of Life
Highway of Life

Reputation: 24321

Follow symlinks needs to be turned on in MAMP.

Open your httpd.conf file in /Applications/MAMP/conf/apache/ Look for <Directory /> Make sure that you have the following Options set:

Options Indexes FollowSymLinks

You can also setup a local virtual host for better testing of your WordPress site. It's beyond the scope of this question/topic, but if you'd like I can create an example config file and instructions on how to do that.

Upvotes: 3

Related Questions