WordPress.org

Forums

[resolved] wp-config.php changed the ( DOMAIN_CURRENT_SITE ) now can't login ?? (3 posts)

  1. sam altayb
    Member
    Posted 4 years ago #

    Hi guys
    my main domain only opens with www.
    and my subdomain without www.
    if i typed something.com
    will redirect me to
    http://something.com/wp-signup.php?new=something.com

    then stupidly i did this
    http://codex.wordpress.org/Changing_The_Site_URL

    without do a database backup

    so how can i force the main site and subdomains to work without WWW

    i have posts in subdomain wp-2-posts and wp-posts
    and categories
    how can i do this without effecting the DB and post links

  2. You really have to set that up server-side *first*.

    if i typed something.com
    will redirect me to
    http://something.com/wp-signup.php?new=something.com

    To get it to not do that (and redirect to the www for the main blog) put this in wp-config:
    define( 'NOBLOGREDIRECT', 'http://yourdomain.com/' );

    And undo the other changes you did.

  3. luispic
    Member
    Posted 4 years ago #

    Thanks @Andrea_r this worked out perfectly for me too!

    :cheers:

Topic Closed

This topic has been closed to new replies.

About this Topic