Support » Plugin: WordPress MU Domain Mapping » Writing server IP address and not domain name

  • Hi

    I have been using the plugin for a while and it works well but I have now discovered that it is doing something that is going to prevent me from using an SSL cert.

    My server has about 10 sites all pointing to the WordPress MU setup and these get correctly routed.

    Looking at the code I can see that resources get pointed to the correct domain:

    <link rel='stylesheet' id='afg_css-css' href='//www.neilthompson.co.uk/wp-content/plugins/awesome...

    However, any images that are uploaded get pointed to the server ip rather than the domain name:

    <img width="604" height="270" src="//54.72.103.138/neilthompson/wp-content/

    This works but now I want to add an SSL cert to the site and I can’t as I have resources being pulled from two places which is marked as insecure.

    How can I change my setup so that the images get written with the domain name rather than the server IP address?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    Is your main site running on the IP address?

    Possibly. How do I tell?

    I have just checked “root” and there don’t seem to be any settings for domain mapping there – where do I find the “main site” you refer to?

    Thanks

    williamsdb

    (@williamsdb)

    @ron any update on this please as I really need to sort out what I have done! Thanks.

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    Is your main site running on the IP address?

    Is your main site URL on an IP address (ie. http://12.34.56.78) or on a domain ( ie. http://site.com)?

    williamsdb

    (@williamsdb)

    If by that you mean the root site then on IP address.

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    I don’t think you can use verified SSL on an IP address. You will need to

    – remove the domain mapping
    – edit the site URL in network admin to be the mapped domain
    – use a DB search & replace tool to replace all instances of the IP URL in the site content.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Writing server IP address and not domain name’ is closed to new replies.