How to install wordpress in a subdirectory of a site with an existing .htaccess file How to install wordpress in a subdirectory of a site with an existing .htaccess file

How to install wordpress in a subdirectory of a site with an existing .htaccess file

This happened to me whilst working on a  pre-existing site recently.

 

The Problem

You are trying to install WordPress onto a subdirectory of an existing site that uses the .htaccess files for routing.  When you try to add in the changes needed for WordPress to work you break the existing site.

The Cause

WordPress .htaccess files do not play nicely with other .htaccess files

The Solution

Simply add in the WordPress generated .htaccess files in the WordPress directory, and everything magically works.

For Unix people this must be obvious, but for me it was surprisingly brilliant.

 

 

Written By Steve French

 

One response to “How to install wordpress in a subdirectory of a site with an existing .htaccess file”

  1. Very nice post. I merely found your website and wanted to point out that I’ve got truly loved shopping your blog post threads. At any rate We are following as part of your feast for wanting you’re again quickly!

Leave a Reply

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






Copyright 2011 Digital Tool Factory. All Rights Reserved. Powered by raw technical talent. And in this case, WordPress.