x-default hreflang

Hi

I have a website in which I need to target homepage (Example Domain) internationally and one different page (www.example.com/usa) in USA particularly.
Both the pages are in English.

I need to know is the following code correct for both pages or there need some changes.

Here is the code:

URL – https://www.example.com

Code
<link rel="alternate" hreflang="x-default" href="https://www.example.com" />
<link rel="alternate" hreflang="en-us" href="https://www.example.com/usa/" />

URL – https://www.example.com/usa/

Code
<meta http-equiv="content-language" content="en-us" />
<link rel="alternate" hreflang="x-default" href="https://www.example.com" />
<link rel="alternate" hreflang="en-us" href="https://www.example.com/usa/" />

Can we link different ccTLD’s to main TLD and vice versa?

One of our client want to target different geographical location and we suggested him to use geo-specific ccTLD for respective locations (like .uk for united kingdom, .in for india, .fr for france)

And he want to link to all the ccTLD’s from main domain (.com) and vice versa. (from the header section of the website.)

Now I want to make sure that there is no issue from google if we link all the ccTLD’s from main domain and vice versa.

Sitemap for a dynamic website

Hi All,

I am having a website in which Blog section and few more pages are updated regularly. In that case, it is quite annoying to change the sitemap regularly on addition of new webpage.

I heard that there are some ways by which I can get my website’s sitemap updated regularly by using some sort of php script.

I know one method of using plugins but I don’t want to use them as I am eager to learn new ways.

So, if anyone of you knows how to do that it would mean a lot.

Thanks