The MU forums have moved to WordPress.org

Absolute/Relative internal link problem (3 posts)

  1. marcusjwilson
    Member
    Posted 14 years ago #

    I've just installed Wordpress MU at http://www.northings.com.

    All seems okay, apart from all links internal to Wordpress MU are adding the name of the URL twice

    i.e. login link tries to access http://northings.com/northings.com/wp-login.php rather than just http://northings.com/wp-login.php.

    I assume I entered the site URL wrongly on setup. Can you advise where I need to change the domain and path references in the php files and/or SQL to correct this? I'll be using subdomains for each blog.

    My current wp-config.php has the entries below. If I change PATH_CURRENT_SITE just to '/' the site starts to throw errors.

    Thanks
    Marcus

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    define('VHOST', 'no');
    $base = '/northings.com/';
    define('DOMAIN_CURRENT_SITE', 'northings.com' );
    define('PATH_CURRENT_SITE', '/northings.com/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );

    Thanks
    Marcus

  2. tmoorewp
    Member
    Posted 14 years ago #

    Change define('PATH_CURRENT_SITE', '/northings.com/' ); to define('PATH_CURRENT_SITE', '/' ); and $base = '/northings.com/'; to $base = '/'; and you'll be fine.

  3. justinkomhyr
    Member
    Posted 14 years ago #

    Can you please let me know if this works. I haven't seen it for a while but I had a similar problem once?

About this Topic

  • Started 14 years ago by marcusjwilson
  • Latest reply from justinkomhyr