WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Trying to move site to new domain - help please! (6 posts)

  1. vsomething
    Member
    Posted 4 years ago #

    Trying to get domainA to show up on domainB without moving the files. I would like to keep the wordpress install on domainA. I thought I had it working correctly, but all it shows is the index.php file. None of the other pages will work correctly. Nothing else would work within the site. Here is my index.php file. Any thoughts anyone?

    <?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('http://domainB.com/');
    ?>

  2. Did you change the URLs in Settings/General before switching domains? If not, you'll have to change them in the database.

  3. vsomething
    Member
    Posted 4 years ago #

    I did, but when I go transfer the index.php and .htaccess files, all I can see is the index.php file. Even when I click on the other pages. And the domain read domainB.com/index.php. Any thoughts?

  4. Can you share a link to the blog? It's easier to see what's happening than to hear it.

  5. vsomething
    Member
    Posted 4 years ago #

    Actually, I just retried it and now it worked! Thanks for your time!

  6. You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic