Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 673
Yarin Avatar asked Jan 13 '11 00:01

Yarin


People also ask

How does permalink work in WordPress?

A 'permalink' is a 'permanent link' to a specific page or post on a website. When you share a link, you expect that it won't change and will be a permanent resource. WordPress generates a permalink for each post or page you create, which can be edited. There are several types of permalinks that WordPress uses.


1 Answers

Changed my httpd.conf from

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

To

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

And it works.

like image 112
Yarin Avatar answered Sep 23 '22 10:09

Yarin