Multiple domains for a single wp installation (2 posts)

  1. txema.heredia
    Posted 2 years ago #

    Hello all,

    I am managing a linux webserver where all users can have their own site (using apache's mod_userdir) stored in their home directory. As most of those users don't have neither the time nor the knowledge to create their own site, I created some time ago a wordpress site template (with some placeholder data and a little design using the atahualpa theme to keep all users sites somehow consistent), that I copy to their home every time a user needs a site (all sites/users use the same mysql database, but each site has their own table prefix).
    I am aware that this is not a very good practice, as now there are multi-user+multi-domain installations, and I should be updating the wordpress installation (we are still using 3.0.1).

    Fast-forward in time, users began making public their site addresses (even though they were temporary) and, later on, we got a few new domains that all sites should be able to use.
    Right now, our sites can be accessed by the following addresses:

    Whenever somebody types one of those addresses, they reach the user's wordpress site, but once they are there, all links are hard-coded to only one of the site addresses (right now, new_site_address.org , set in general settings - site address). So, anyone accessing from 'www.new_site_address.com/~user' will see their url changed to 'new_site_address.org/~user/content' after the first click.

    Is there any way of making all wordpress links path-relative instead of forcing the whole site address?

    I have read some fixes around this, but they didn't work for me (wordpress doesn't allow me to leave site address url blank, and I had no luck using apache's mod_rewrite as described here http://www.internetofficer.com/seo/301-redirect/multiple-domain-names/ (but I am still using it for permalinks)).

    Thanks in advance,


    PS: We care little to nothing about SEO, so this shouldn't be a concern.

  2. txema.heredia
    Posted 2 years ago #

    Does anyone have a suggestion about this?

    The best thing I could find is http://wordpress.org/extend/plugins/root-relative-urls/installation/ . It works fine for new installations, but it blows everything up in existing sites.

Topic Closed

This topic has been closed to new replies.

About this Topic