• I have a new installation of WordPress on a server box I own and it co-located at a local ISP.

    Presently my WordPress installation, all pages, images, etc. use the server’s static IP in all URLs.

    I plan to point a domain name I own and control at this box, so that when anyone types my domain name, the domain name will point to this server box and this installation of wordpress.

    Question, should I change every page and image URL on my wordpress installation from:

    https://myIPaddress/page-id x

    to https://www.mydomainname.net/page-id x

    Should I go back through and manually change all the URLs that currently point to my local static IP address to the domain name??

    Are there advantages and disadvantages to doing it this way ??

    Thank you in advance !!

    — John

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yes, you should change your URLs from yourip to yourdomain.

    BECAUSE your domain can move to any IP, but the IP remains where it is. So if you lose it (or switch to IPV6) you’re screwed ??

    Search/replace the database. It’s fine ??

    Thread Starter Cain57

    (@cain57)

    Thank you…

    Can I do this an easier way??

    Can I go to Admin – General settings – and change these two entries to my domain name?? Or perhaps one of these entries?

    WordPress address (URL)
    Site address (URL)

    Will that work ?? this looks like it may be easier than database fiddling.

    Thread Starter Cain57

    (@cain57)

    Or perhaps use this plugin ???

    https://www.ads-software.com/extend/plugins/velvet-blues-update-urls/

    There appear to be many ways to “skin this cat” and I’m looking for the easiest one that I am most unlikely to screw up !!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I was assuming you’d actually read the codex first.

    Treat this like you were ‘moving’ WordPress. I know you’re not, but it’s the same idea.

    1) https://codex.www.ads-software.com/Moving_WordPress

    2) https://codex.www.ads-software.com/Changing_The_Site_URL

    You will STILL need to edit the database. It looks like that plugin can do it, but I’ve never used it. I just search/replace for xxx.xx.xx.xx/domain.com – works fine.

    Thread Starter Cain57

    (@cain57)

    Thank you, I am a super noob, I had no idea what a Codex is/was.

    One final question please, this part is a little confusing to me:

    # In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
    # In the box for Blog address (URI): change the address to the new location, which should match the WordPress address (URI).

    ===========

    This sounds as if it is pointing to an internal file location on the server. Should I put my domain name in there in both places?

    Currently it is:
    https://xxx.xxx.xxx.xxx
    in both locations.

    Do I change both of these two to:
    https://www.mydomain.net

    I understand now I also need to manually change all the existing URLs.

    Thank you again for the reply and the patience.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This sounds as if it is pointing to an internal file location on the server. Should I put my domain name in there in both places?

    Yes ??

    The general rule is always point to a domain name instead of an IP address. Benefits are (1) stability and (2) it’s so much easier to remember a domain name than a whole bunch of numbers.

    Let me know if you have any queries about this. You can email me at my site Web Design Brisbane.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Static IP vs Domain name??’ is closed to new replies.