Custom Permalinks don’t work on local LAMP installation

I’m on Ubuntu and using LAMP for local dev. I’ve several WordPress installations for different project and tried to set custom permalinks on all of them, but only default permalink setting ( http://localhost/wpinstalation/?p=123 ) works, other settings are giving 404 error. Any idea how can I fix this?

George

Related posts

Leave a Reply

1 comment

  1. I had the same problem. It sounds like you don’t have rewrites turned on in your installation.

    Find your httpd.conf file, find the following line:

    #LoadModule rewrite_module modules/mod_rewrite.so
    

    And remove the # at the beginning so it looks like this:

    LoadModule rewrite_module modules/mod_rewrite.so
    

    Save and then restart the service. Custom Permalinks should now work. There might be an easier way but I’m not familiar with Linux