• Hi, I have WordPress install files stored in inaudible.co.uk/blog with the WordPress address URL as https://inaudible.co.uk/blog and blog address URL as https://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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WordPress and add-on domains’ is closed to new replies.