Can two different WordPress blogs on the same server use a common theme folder?

I have two WordPress blogs running on the same server, so they both have access to the same file system. Both blogs use the same template, and this template is duplicated within each theme directory. Every time that I update the theme I need to copy over the new files to both theme directories.

Is it possible to have both of these blog share a common theme directory so that I only need to modify one template folder?

Related posts

Leave a Reply

3 comments

  1. Absolutely. Just make sure that they have read and write access to that shared folder.

    Then set up a symlink from each of the theme folders. You do this with ln -s <origin> <new>

    If you can’t use symbolic links, you can then set up a rewrite-rule, which redirects all requests from /wp-content/themes to like /var/www/shared/themes.

    If you want, I can provide an example.