Welcome to WebmasterWorld Guest from 54.224.30.39

Forum Moderators: open

Message Too Old, No Replies

Redirect old domains to current domain

     
10:05 pm on Aug 29, 2016 (gmt 0)

Full Member

5+ Year Member Top Contributors Of The Month

joined:May 11, 2012
posts: 316
votes: 3


Over the years I use to create a lot of blogs used to drive traffic to my main site. Most of those blogs I have stopped maintaining. Instead of just deleting them and letting the domain die, I decided to take advantage of a few of them that still had good link juice associated with them.

I 301 redirected them from my old site to my new site by either asking my DNS to redirect people or setting the following redirect in my htaccess file.

RedirectMatch permanent .* https://www.example.com

This sends all pages including oldsite.tld/about-me.html to https://www.example.com

Yet when I go to Google and search oldsite.tld, the search results show oldsite.tld in the title but the description and content are pulled from the newsite.tld domain.

What causes this?

[edited by: not2easy at 10:41 pm (utc) on Aug 29, 2016]
[edit reason] Please use example.com to prevent accidental links [/edit]

11:03 pm on Aug 29, 2016 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:3331
votes: 162


The RedirectMatch uses Apache's Mod_Alias Module which can affect the rule's performance depending on placement order within the .htaccess file and on settings of the server. If the same .htaccess file also has Rewrite Rules that use Apache's Mod Rewrite, there can be unwanted side effects. The technical details from Apache are here: [httpd.apache.org...]

I would suggest using a tool to check the request headers to verify that the rule is producing the expected 301 redirect. It is always a good idea to be sure that a rule is performing as expected.
8:10 pm on Aug 30, 2016 (gmt 0)

Full Member

5+ Year Member Top Contributors Of The Month

joined:May 11, 2012
posts: 316
votes: 3


I appreciate the response. Very strange. I again checked oldsite.tld using a redirect checker and it's a 301 redirect. Not sure why Google would pull the description and content from the site it is being redirected to but still list the site as oldsite.tld