Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress permalink not working after upgrading to OSX El Capitan

I just upgraded my OSX to El Capitan and it messed up my apache environment. I am running my projects in /Users/username/Sites.

After the upgrade I found out that /etc/apache2/httpd.conf was reset to default so I had to setup again by following this Link

But after fixing the configurations, when I tried accessing the wordpress site, the permalink is not working anymore.

The top page and admin page is working. But when I navigate to other page, it's not working and I am getting this error:

Not Found

The requested URL /en/ was not found on this server.

Not Found

The requested URL /workshop was not found on this server.

I already tried to update the permalink. I checked my .htaccess and it's writable. But still, the permalink won't work.

like image 986
Code Diary Avatar asked Nov 10 '22 03:11

Code Diary


1 Answers

I think the one step that guide missed is to add this in your vhost:

<Directory /Users/username/sites>
    AllowOverride All
</Directory>

Without the AllowOverride directive, the .htaccess file in your site's WordPress directory will be ignored.

You will also need to enable the Rewrite module as you mentioned in your comment.

like image 128
drew010 Avatar answered Nov 15 '22 04:11

drew010