• I recently got a WordPress site up and running and everything is running great, except one thing: the site is using our IP address rather than our domain name. I went into the general admin settings as per instructions I found in these forums and switched the two url link values (WordPress Address (URL) and Site Address (URL)) to our domain name. Once I clicked apply changes the site froze up and the site was all distorted upon re-entrance. I was forced to reset these values to the ip address. Is there a reason why this might be happening?

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • See Changing_The_Site_URL for details of how to do this correctly.

    Thread Starter edbergma

    (@edbergma)

    @esmi I followed those instructions and I am still having no luck. The changes save and when the site refreshes it is like I lose all formatting. The site basically just renders a basic html document. Is there a way to make sure I am using the right Site URL location?

    Then you are not following the instructions correctly. Remove anything added to the wp-config.php file and stick to using the functions.php method. I’ve used this dozens (hundreds?) of times without any problem.

    Thread Starter edbergma

    (@edbergma)

    @esmi This is a clean install of WordPress… I used the functions.php method as you suggested and it still did not work; The site still refreshed completely non-formatted. Any other suggestions or presumptions?

    What urls are you entering in functions.php? What was the site’s original url?

    Thread Starter edbergma

    (@edbergma)

    @esmi I am entering “http://www.streetreactions.com”. The sites original URL was the ip address of the site “http://71.63.170.201/”.

    Try switching it back to the original ip address using the functions.php method.

    Hi,
    I’m working on the same site as edbergma. We have been able to switch the site and home fields from the IP to the domain without issue other than it blowing up when we use the domain name. The root of the issue is that none of the links seem to work on the page. The only way to log in or do anything on the page is to use the IP address… http://71.63.170.201/wp-login.php for example. Clicking on any of the links doesn’t open anything, and only internet explorer will redirect you to the page with the IP (somehow IE is actually better than chrome/firefox in this regard?). I guess to rephrase our questions:
    a) Is changing the site/home URLs to use the domain name the correct way to fix this issue?
    b) We have our domain through godaddy where we’re just forwarding (with masking) the domain to our IP. Will changing this to mapping the domain to our IP potentially fix our issue? Or is this not the right path.

    –Thanks for all of the help. Nobody else seems to take interest and I see your name all over the place. We’ll be sure to pay it forward once we know more about what we’re doing.

    a) In theory, yes.

    b) Masking is never a good idea. It would be far better if you pointed the name servers to the WP site and avoided masking altogether.

    That said, the site shouldn’t be blowing up like this. Something is very wrong. Either you;re missing a step in the url change process as outlined in Changing_The_Site_URL. Or there’s something else going on – outside of WordPress. Possibly a server or DNS issue.

    If you try this again and the site collapses again, see if there’s anything in the error logs that might help. It would confirm or rule out any parsing errors in the lines you’re trying to add.

    What we ended up having to do is make godaddy a mapping from the domain to our IP (rather than forwarding) and then change the site/home URLs from the IP address to the domain name.

    Our initial hesitation in mapping was that we couldn’t specify the port (80) of our apache server in godaddy. I guess it defaults to 80 when you map the host to your IP.

    Thanks for the help!

    Glad to hear that you managed to get something sorted. 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Switching site URL from IP address to domain name crashes site’ is closed to new replies.