My sitemap is showing the IP address instead of the domain name

[ad_1]

I have made a bunch of WordPress sites over the last few years but I recently started my first site with AWS Lightsail. There is definitely a learning curve as they do not hold your hand at all. I have learned a lot about it and managed to get the site working with my domain.

I am using the SEO Framework plugin and have noticed that the sitemap generated by the plugin is using the IP address of the site instead of the domain name. I know this is not a plugin issue but something I need to do with AWS. Any insight would be appreciated! Thank you.

[ad_2]
1 Comment
  1. Have you set the site domain name in wp-config.php?

    define(‘WP_SITEURL’, ‘https://example.com/’);
    define(‘WP_HOME’, ‘https://example.com/’);

    You may also need to run a find/replace to fix anywhere in the DB that still contains the IP address – you can do that with a plugin called Better Search Replace.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer