• I have a new domain, and been told to set my wp config file to point to the new domain? How can this be done?

    Sorry if it seems so blah, but I have no idea how to set it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • I’d probably create an htaccess file in your root directory.

    Redirect /index.php https://www.newsite.com

    Or maybe

    RedirectMatch .* https://www.newsite.com

    This is useful resource for all things 301……… https://www.gnc-web-creations.com/301-redirect.htm

    Thread Starter lellow

    (@lellow)

    hmm … not working. ??

    I still get “The Page isn’t redirecting properly” in FF.

    wp-config file has NOTHING to do with the domain where the WP installation is hosted. Whoever told you that – doesn’t have a clue about WordPress.

    You move your WP to the new domain: Moving_WordPress

    Thread Starter lellow

    (@lellow)

    That’s what I thought, lol.
    Funny thing is, the files and all have been moved to the new domain! So I’m confused why I’m unable to access the site (well main site). The url has been changed in the wp-admin setting too.

    1. If it is a new domain – it needs time to propagate all over the web (usually 24-72 hrs)
    2. There are two values in the wp_options table in the database that need to be changed: home and site_url. Check them in the DB if you have access to phpMyAdmin.
    3. BTW, was the database moved, too?

    Thread Starter lellow

    (@lellow)

    1. If it is a new domain – it needs time to propagate all over the web (usually 24-72 hrs)
    2. There are two values in the wp_options table in the database that need to be changed: home and site_url. Check them in the DB if you have access to phpMyAdmin.
    3. BTW, was the database moved, too?

    The domain is working, I can access everything else!

    I went to phpmyadmin >wp>wp_options and saw the “siteurl” was correct. It’s been modified to the new domain. But couldn’t find “home”?

    And yes, the database was moved too!

    Just go back and find the “home”. Usually it is on the next page. Find those > and >> things and click!

    Thread Starter lellow

    (@lellow)

    Thanks so much moshu! That did the trick! ??

    One last thing, though it may be off – how can I get the pages to work again? When I click a link I get the “404 Not Found” (and not the custom wp 404). I tried changing the permalinks, but none work except for the default.

    Using_Permalinks – see the troubleshooting

    Thread Starter lellow

    (@lellow)

    Thanks for all your help! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to set WP config file to point to new domain?’ is closed to new replies.