WordPress.org

Ready to get started?Download WordPress

Forums

logging in to wp-admin on subdomain forwards to admin of domain (2 posts)

  1. citydan
    Member
    Posted 2 years ago #

    I have copied an existing wp site by copying the database to a new database, and downloading all of the site's files and uploading them to a subdomain. I have updated the db settings in wp-config.php.

    All of the links subdomain.domain.com are still pointing to pages in domain.com, and when I log in to subdomain.domain.com/wp-admin it redirects me to the admin panel of the wp install on the domain (the real site) instead of into the admin area of the test site (my subdomain).

    What setting have I missed changing?

    I've tried renaming .htaccess to something else so that it doesn't affect the site, but that only allows me to navigate the subdomain, but I still can't login to the admin panel.

    When I go to subdomain.domain.com/wp-admin I an redirected to
    http://domain.com/wp-login.php?redirect_to=http%3A%2F%2Fsubdomain.domain.com%2Fwp-admin%2F&reauth=1

  2. esmi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic