WordPress.org

Ready to get started?Download WordPress

Forums

WordPress and add-on domains (2 posts)

  1. pepsimax2k
    Member
    Posted 6 years ago #

    Hi, I have WordPress install files stored in inaudible.co.uk/blog with the WordPress address URL as http://inaudible.co.uk/blog and blog address URL as http://inaudible.co.uk/crimea .

    I have the index page at inaudible.co.uk/crimea , using the following index.php code:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require($_SERVER['DOCUMENT_ROOT'] . '/blog/wp-blog-header.php');
    ?>

    and this .htaccess also in /crimea:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /crimea/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /crimea/index.php [L]
    </IfModule>

    # END WordPress

    now my question: I've just created an addon domain (myaddon.co.uk) to point directly to inaudible.co.uk/crimea, so going to myaddon.co.uk is effectively the same thing (note it's not a redirect). what would i have to do to get wordpress set up so that going to myaddon.co.uk will show my index page as it does at the moment with inaudible.co.uk/crimea ? would it just be a case of changing the blog address url to myaddon.co.uk, changing $_SERVER['DOCUMENT_ROOT'] . ' to inaudible.co.uk, and just getting rid of the .htaccess file altogether?

    thanks.

  2. pepsimax2k
    Member
    Posted 6 years ago #

    bump... surely someone else has done this before?

Topic Closed

This topic has been closed to new replies.

About this Topic