1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Domain Directing to Correct Folder

Discussion in 'Content Management' started by Foosho, Jan 11, 2012.

  1. #1
    Hi all,

    Just installed wordpress in a sub directory, lets say /wordpress1. Now I want to install another wordpress in another directory, lets say /wordpress2. However, how do I make sure the domain points to the right directory.

    Domain1.com ----> /wordpress1
    Domain2.com ----> /wordpress2

    In the root i have my .index.php and .htaccess

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wordpress1/wp-blog-header.php');
    ?>
    Code (markup):
     
    Foosho, Jan 11, 2012 IP
  2. Meedan

    Meedan Member

    Messages:
    134
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #2
    I don't think this is possible. We can't purchase a single hosting package & run more than 1 domain on it.

    In case it is possible, please do let me know the trick & I would stop wasting my money for other hosting service providers.
     
    Meedan, Jan 11, 2012 IP
  3. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #3
    I dont think that will really work. You have to at least use an addon domain.

    Nigel
     
    Nigel Lew, Jan 11, 2012 IP
  4. Foosho

    Foosho Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    @Nigel

    I do have an addon domain.
     
    Foosho, Jan 11, 2012 IP