Configuring Apache for WordPress

WordPress Logo
I installed a new WordPress blog today on a server. The site is served by Apache using virtual hosting. I kept getting 404 errors trying to access any page that required mod_rewrite, pretty much other than the home page and administrative pages.

It turned out that I forgot the following in the Apache httpd.conf file:

<VirtualHost *:80>
...
  <Directory /path/to/wordpress/root>
    Options +FollowSymlinks
    AllowOverride FileInfo
  </Directory /path/to/wordpress/root>
</VirtualHost *:80>
This entry was posted in SysAdmin and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">