I registered a domain and built a site on it. I didn't realize that the domain had a previous owner who 301 redirected the entire domain to another domain of his.
I have this domain listed in my webmaster search console.
Google mobile friendly test loads the page successfully and shows the result.
Google won't crawl the site because of the past 301, and it won't index it either. It's been a few months and still no index. You could say that maybe Google just doesn't like my site but all of my other sites get crawled and indexing so I'm sure that the 301 redirect is the problem.
Most of the URLs that I put on the domain are in directories that didn't exist with the previous owner.
For the past couple of months, when I searched Google for
site:example.com it showed the domain that it was redirected to by the previous owner and not my own site. Now when I search for
site:example.com it just shows no results.
Is there a way that I can undo the 301 set by the previous owner or do I have no choice but do drop this domain and put it on a completely different domain altogether?
(This post was inspired by this thread where the OP had a client who got hacked and his server was redirected. "How can I redirect a specific series of URLS to 410 redirects")
If there is no way to undo the redirect and I'm forced to change domains, what happens if someone were to hack a domain and 301 the entire site to another domain? Is there no way to undo that with Google?