When it comes to actually using these products you will be redirected to https://subdomain.neetocal.com. Here "subdomain" would be the subdomain allocated to you when you signed up for neeto.
We are using cloudflare as our DNS provider. Using the tools provided to us by Cloudflare we decided to show the content of "neeto.com/neetocal" on "neetocal.com" without redirecting the user.
Note that in this case if you type "neetocal.com" then you will see the url change to "neetocal.com/neetocal" instantly. That's because the url of the main marketing site is "neeto.com/neetocal".
Cloudflare provides Page rules which we will be using to achieve our goals. Below is video of how it was done.
SEO duplicate content issue
The google search engine doesn't like it when we show the exactly same content on two different domains. Google thinks that the site is trying to cheat Google and Google will punish both the sites.
1<meta name="robots" content="noindex">
In the above example we are asking all bots to not to index the page containing the above meta tag.
We planned to inject this meta tag when a page is rendered for the url "neetocal.com" and we will not inject this tag when the page is rendered for url "neeto.com".
Upon more research we found that search engines also look at the response headers. Given below is the sequence that search engines follow for indexing the web pages.
- Crawler gets the raw page source as a response to the HTTP request.
- Crawler checks if x-robots-tag: noindex, nofollow header is present in the response.
- Crawler checks the meta tags to determine if the page needs to be indexed or not.
If a page has x-robot-tag: noidex, nofollow then the crawler will not index the page.
Based on this information we decided to use Response Header Modification Rules feature of Cloudflare. Below is a video of how it was done.