Support » Fixing WordPress » migrate subdomain to main domain

  • I trying to change domain in my WP. I was developing site under free server domain name like: now when page is done I would like to change domain to

    I’ve changed domain URL in Sttings -> general and everything is good but not homepage. Homepage is still under server free domain. I using also POLYLANG plugin and when I click on language FLAG WP move me to and then all website is under this free domain not only homepage.

    How to fix this? Maybe PHPMYADMIN could help me? How to make global query to change every: “” to

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,@trde

    Open phpMyAdmin.

    Click your database in the left pane. Several tables appear below it. Click on your wp_options table.

    Locate the ‘siteurl’ and ‘home’ rows. Click the pencil icon next to each to edit.

    Set the site URL and home URL.


    And this is a problem because this positions has good domain name :/

    OK problem solved by replacing string in MYSQL using global query. Probably POLYLANG plugin was the problem because specialy for this plugin i made few menus -> different for each language. I wasn’t able to change URL for homepage so i decided to make global change in MYSQL, and now it works.

    If any of you has the same problem you can:

    1. make global query in MYSQL using “UPDATE”
    2. export SLQ file -> open it in notepad++ (or anything you like) and replace all positions: to

    WARNING: second option use only when MYSLQ is not dynamic. It means page do nothing in real time. For example if page is still not publish and you are only user.

    No matter what option do you choose ALWAYS make copy of your MYSQL.

    Glad to know…!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘migrate subdomain to main domain’ is closed to new replies.