Latest posts made by kernmedia
-
Google Search Console "Change of Address" - Failed Redirection Test
I have a client who has a lot of domain variations, which have all been set up in Google Search Console. I requested that the client use the COA feature in GSC for the domains that are now redirecting to other domains that they own (which are set up in GSC).
The problem is that we're not redirecting the homepages to the homepages of the destination domains. So, GSC is giving us this error message:
fails redirection test: The old site redirects to www.domain.com/blog,
which does not correspond to the new site you chose.
Is our only way to use GSC COA for these domains to change the homepage redirect to go to the homepage of the destination domain? We don't really want that since the domain we're redirecting is a "blog.domain1.com" subdomain and we want to redirect it to "domain2.com/blog".
Any help appreciated!
Thanks,
Dan
-
RE: Code to Redirect Mobile Subdomain to Desktop Site
Well, I worked with the developer that contracts with this client and here's what he put in the .htaccess file (domain replaced with "domain"). It did the trick.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^m.domain.com
RewriteCond %{REQUEST_URI} !^/sitemap.xml$
RewriteCond %{REQUEST_URI} !^/robots.txt$
RewriteRule ^(.*) http://www.domain.com/$1 [R=301]
-
RE: Code to Redirect Mobile Subdomain to Desktop Site
I have some code that I think will work. Would appreciate peer review 
RewriteCond %{HTTP_HOST} ^m.domain.com
RewriteRule ^(.*) http://www.domain.com/$1 [R=301]
I'd like to also avoid redirecting the /robots.txt file and /sitemap.xml file on the mobile subdomain, since I want Google to crawl the sitemap to facilitate faster processing of the redirects. If the code above is correct, how would I add this line of code (below) into the 2nd line of code above?
RewriteRule ^((?!.?.xml|.?.txt|.?\GoogleVerificationFile.html).).* http://www.domain.com [R=301]
-
Code to Redirect Mobile Subdomain to Desktop Site
Hi Everyone,
My client is switching from a mobile subdomain to a responsive site. All URLs are the same on mobile subdomain vs desktop so we just need a wildcard rule to redirect m. to www.
Anyone have this wildcard redirect code for an .htaccess file?
Much appreciated!
Dan
10+ years of experience in content marketing, content strategy, technical SEO and link building with a focus on Wordpress, eCommerce, Magento and creating quality content to build brands (holistically) in the online world.