Allow users to access my beta subdomain but pass link juice to the main site

Allow users to access my beta subdomain but pass link juice to the main site - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Allow users to access my beta subdomain but pass link juice to the main site error on your web browser. Problem :


My site can be accessed by either http://example.com or http://beta.example.com. The sub domain beta is the same site but a different version and I want users to be able to use the beta but any links gained on the beta domain I want the link juice to pass to the main domain. How can this be done?


Solution :

Never treat Googlebot any different than actual site visitors



You should never treat Google bot any different from actual users. Redirecting Googlebot using user agent or other similar tactics and not users will likely harm your site as its against Google's guideline rules.



Cosmetic changes say hello to canonical links



If the beta site has the same content but different cosmetic changes through CSS then you should use canonical links pointing to the master pages that way any links gained on beta will pass to the main domain.



If the content is different



If the content is actually different then you should not attempt to redirect Juice as this again will not go well with Google, if you want the juice to flow to the main site then you should run it on the main domain with a sub folder /beta/.



The best way to do this is with a rel canonical link tag in the head of each of your pages.



So the home page of both your main site and your bet site would have this:



<link rel="canonical" href="http://example.com/" />


And foo.html on each would have this:



<link rel="canonical" href="http://example.com/foo.html" />


That way Google knows which is your preferred site. Google will also treat all inbound links to the beta site as if they pointed to the main site.


We hope that this article has helped you resolve the seo, redirects, robots.txt error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

What is the SEO impact of multiple redirects that return to the current page after setting a cookie?

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?