• Hi,

    I have tree domains and one server. Right now all 3 domains points to the same root folder on the server.

    In the root folder I have an index.php with the following content:

    <?php
    define('WP_USE_THEMES', true);
    require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );

    That redirects any requests to the same wp install in the folder wordpress.

    Now, how do I best make requests to each of the tree domains redirect to different folders?

    Best regards
    Kresten, Denmark

Viewing 3 replies - 1 through 3 (of 3 total)
  • Change the folder that the domains point to. I would suggest you contact your host for help with this since it varies from host to host. Then you would have three seperate WP installs.

    Thread Starter Kresten Skovsted Buch

    (@krestensb)

    They tell me to use a .htaccess file in my root.

    I tried that, but is that the way to go when I’m using wp?

    On my host, I can add as many domains and/or sub-domains as I want and point each at a seperate folder. In cPanel, it is in the ‘Domain’ section:
    – Subdomains
    – Addon Domains

    If your host does not use camel and/or provide this optio you will have to work with them to get this done

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Tree domains one server’ is closed to new replies.