Forums

Self hosted blog on different domain... possible? (4 posts)

  1. iuchewie
    Member
    Posted 3 years ago #

    OK... I've got a self hosted WordPress blog located here: http://ktc.406northlane.com/blog/ All of the WordPress files are located in the /blog/ directory.

    What I'd like to do is make it so http://blog.killthecan.org/ points to the above install. Possible?

    I've got an index.php file in the root of http://blog.killthecan.org/ with the following code:

    '<?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('http://ktc.406northlane.com/blog/wp-blog-header.php');
    ?>'

    But that's not seeming to do the trick... Any help would be appreciated.

    chewie

  2. Otto
    Tech Ninja
    Posted 3 years ago #

    This is wrong:
    require('http://ktc.406northlane.com/blog/wp-blog-header.php');

    You can't include a site onto a different site like that. In fact, what you're trying to do probably can't be done at all without some major modifications.

    If you want to point one URL at another, you need to set up a redirect at the URL and have it point to the other one that way.

  3. iuchewie
    Member
    Posted 3 years ago #

    OK, so if I setup a redirect, someone would goto http://blog.killthecan.org/ and then be redirected to http://ktc.406northlane.com/ correct?

    Essentially what you're saying is, there's no way for the URLs to continue to be killthecan.org rather than 406northlane.com correct?

  4. Otto
    Tech Ninja
    Posted 3 years ago #

    Not unless you actually put the site on killthecan.org instead. This could be done with DNS, probably. You have to talk to your hosting service about it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.