0

I have having trouble getting my site http://www.triadmathtutor.com online with wordpress. On my home connection I can connect to the site correctly with these wp_config settings:

// define('WP_SITEURL', 'www.triadmathtutor.com');

// define('WP_HOME', 'www.triadmathtutor.com;

define( 'DB_HOST', 'www.triadmathtutor.com’ );

That is, WP_SITE_URL and WP_HOME are commented out. However, my website is not online. If I then uncomment WP_SITE_URL and WP_HOME I can’t connect to my site at all via www.triadmathtutor.com. If I got to the wordpress settings on wp-admin (with the config file settings mentioned above still commented out) , I see that:

WordPress Address (URL) and Site Address (URL) are both set to:

https://www.triadmathtutor.com

I also believe that I noticed from before that whenever I had the values above uncommented I was getting strange things like a redirect to http://www.triadmathtutor.com/www.triadmathtutor.com/ which looked wonky and obviously didn’t go to the website.

Other things I have tried: With the above mentioned commented out on the local machine, I can ping http://www.triadmathtutor.com correctly, but it’s connecting to the local host ip address only.

Help greatly appreciated. Thanks!

The blog I need help with is: www.triadmathtutor.com

10
  • 1
    those look like smart apostrophes. try replacing with '
    – rudtek
    Commented Aug 14, 2023 at 15:12
  • also are you trying to host this from your home computer? Visiting that site indicates it has an invalid SSL/TLS certificate, and that it's being served by Lando, a local dev environment designed for developers to build sites without having to connect to a remote server, akabuilding a site on your own computer, it's not intended for hosting the actual site. I've removed the wordpress.org tag as this isn't a question about wordpress.org, and the wordpress.com hosting tag as you aren't asking about a wp.com hosted site
    – Tom J Nowell
    Commented Aug 14, 2023 at 15:24
  • Also, try to add https:// in front of the url. define(‘WP_SITEURL’, 'https://www.triadmathtutor.com');
    – rudtek
    Commented Aug 14, 2023 at 15:25
  • I literally cannot even submit a comment, so I have to provide my response in an answer: @rudtek - Thanks for the apostrophes thing, that is correct that it was the incorrect apostrophe. However, I checked, and I am indeed using the apostrophe you had mentioned to replace with. I did try your suggestion with https:// but it still is doing the same thing. Tom J Nowell - I am not using Lando. I am using wordpress that is connected via an nginx server. This is home web development so I am not even using any CMS other than wordpress that I downloaded. Please don't remove tags from my post untill y Commented Aug 14, 2023 at 15:57
  • Regardless of where the site is being hosted @Tomjnowell is right: the domain isn't live. You'll need to figure out if it IS being hosted and where. The domain you provided has no DNS entries or Nameservers attached so no matter what you put to that domain it won't show.
    – rudtek
    Commented Aug 14, 2023 at 16:35

2 Answers 2

0

There may be a problem with the actual production database values for siteurl and home. Depending on your host and url rewrite rules and installation you probably need to make sure the values start with the protocol, http:// or https://.

0

Your site is not running on a web server, it's running on your local computer. Your DNS has been setup to point to 0.0.0.0 which is not a web server but a broadcast IP that always points to yourself:

enter image description here

enter image description here

This is why I thought you were running Lando, because I have a copy of Lando running on my machine.

It's also why your site doesn't work on other peoples computers, because they don't have your site running on their machine. In fact if they had a local dev environment they would see that instead.

To fix this, you need to remove the A record for 0.0.0.0 and replace it with an actual IP address that exists on the open web.

For example here is my website, and you can see in its DNS record is an IP for a machine at a popular cloud host:

enter image description here

If you wanted to host it on your own hardware at home, you'd need to find out your IP address and put that in your DNS records, making sure your home network knows to route the request to the correct machine.

Note though that:

  • this violates the terms and services of most ISPs
  • most ISPs rotate IP addresses every 24 hours, you'll need to request a fixed IP if your ISP offers that service
  • this all counts towards your home bandwidth allocation. If your ISP gives you a 50gb allowance and I download a 10gb file from your server 5 times your site and internet will go down.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.