• Hi. I have installed wordpress on my Linux (Ubuntu 16.04) desktop. All seems to be fine but…
    1)On my desktop if I use my browser to access my blog “https://localhost/blog” all is good, the browser displays my blog. No problem. But…
    2)Others trying to access my blog using “https://my_domain_name.com/blog” first they get a page with a few wordpress links. One of these links is the link to my blog. When they click on it the browser is directed to “localhost/blog” with an UNABLE TO CONNECT error.
    Why is “my_domain_name.com” replaced with “localhost”?

    How do I correct this, so that everyone can see my blog ?? (Not just me on my own desktop).
    Thanks for any help/suggestions.

    • This topic was modified 8 years, 3 months ago by jopica.
    • This topic was modified 8 years, 3 months ago by jopica.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Set up your blog to use the domain name and then, in /etc/hosts on your box, point the domain name to 127.0.0.1

    Use the plugin “better search and replace” to replace https://localhost with https://domain on your site.

    Thread Starter jopica

    (@jopica-1)

    Hi Steve,
    Do I set my blog to use the domain name by (in the wp-config.php) setting the entry
    define(‘DB_HOST’, ‘my_domain_name.com’) instead of define(‘DB_HOST’, ‘localhost’) as I have it is now?
    Is that it?
    Thanks again for helping me for the second time. I’m grateful.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    no, the database is still localhost.

    Thread Starter jopica

    (@jopica-1)

    OK. I went to wp-admin and set SITE to “my_domain_name.com/blog” and HOME to “my_domain_name.com”. (I rechecked these on the Options table of my mysql wordpress database).
    Also, on /etc/hosts, I set 127.0.0.1 pointing to “my_domain_name.com”. Now besides no longer being able to login to wp-admin, others still can’t see my blog on “www.my_domain_name.com/blog”. First they see a page with a link to my blog which when followed get my website home page “www.my_domain_name.com” instead.
    What a mess ?? I’ll continue to fight this.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    did you put https:// in front of the domain name?

    Thread Starter jopica

    (@jopica-1)

    dear steve
    thanks again for your help and investing some of your time on this.
    after trying and trying all these different things I finally nave everything working but, believe it or not, was by doing something that is not recommended (according to my understanding) in all I have read so far .
    I went into mysql database and in the options table I set both the HOME and SITE to the same address (mydomain_name/blog) et voila! somehow everything is working correctly.
    if you have a thought on this please let me know.
    THANKS.

    • This reply was modified 8 years, 3 months ago by jopica.
    • This reply was modified 8 years, 3 months ago by jopica.
    • This reply was modified 8 years, 3 months ago by jopica.
    • This reply was modified 8 years, 3 months ago by jopica.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t see my log online’ is closed to new replies.