• viebong

    (@viebong)


    I installed and editing a new WP blog in one of my folder within the OLD domain name. the address : OLDdomain.com/Wordpress
    Now I switched my primary domain to a NEW one.
    NEWdomain.com/Wordpress —-> it still work for the Homepage, but cant go further because the link still be OLDdomain.com/Wordpress/?page_id=5

    I think the problem with the General link setting, so try to login WP acc
    NEWdomain/Wordpress/wp-login.php —-> entering the user and pass then it come to the link OLDdomain/Wordpress/wp-login.php with the notice that I cant access this page…

    I cant understand and dont know how to change my WP acc. to make everything work well under the new domain.

    Anybody know this case?

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Snat

    (@snat)

    Try this.

    In your theme folder, you should see a file called functions.php. If it is not there, make it.

    If it is there, just right below the opening <? add

    update_option('siteurl','http://newdomain');
    update_option('home','http://newdomain);

    If you had to make the file, put <?php in front of the code above. Access your site once and it “should” change your URL. If it has, remove those two lines from that file.

    There are other methods listed here: http://codex.wordpress.org/Changing_The_Site_URL

    Thread Starter viebong

    (@viebong)

    Thank you Snat,
    It works in 1/2 sec. I just have to manually edit all the Custom field link.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp-login.php not work when changing domain name’ is closed to new replies.