Forum Moderators: open
I hope someone can help with my dilemma, as I've been scratching my head all day.
Over the last 2 years my company has purchased several other companies and over the next month 3 will be merged onto a new server and domain Each has very good search engine listings so I am wanting to put 301 re-directs throughout each site which will direct to an appropriate page on the new site.
I would like to create a message on the new site that only appears when a visitor has been referred using one of the 301 re-directs, as an additional way of informing customers of the merge.
I have tried PHP scripts and JavaScript to find the referrer, but to no avail. I suppose my question is, is this possible?
Is there a way of finding the referring domain if it is from a 301 redirect?
Thanks for any assistance you can give!
Jiff
well somewhere in that invisible step you need to add something that newsite can recognize. you have a few options:
GET (adds stuff to the querystring)
POST (has potential)
SESSION (probably will not cross domain boundaries)
COOKIE (not a good idea)
this problem sounds familiar [webmasterworld.com]...
<doctype.....>
<html>
<head>
<title>This site has moved.</title>
<meta http-equiv="refresh" content="2;url=http://www.new_website.com/" />
<head>
<body>
<p>Such-and-Such Co Inc. has merged with This-Other Co. and can now be located on the web at <a href="http://www.new_website.com/">http://www.new_website.com/</a>.</p>
</body>
</html>
<script>window.onLoad=function(){myform.Submit();}</script>
<form action="mypage.php"><input type="hidden" name="mypost" value="42"></form>
What would happen if you had all your oldsite 301 traffic go to a landing page on the new site, drop a session variable or cookie, then continue with a SECOND 301 redirect to the actual page?
SE >(get/click)> oldsite >(301)> newsitelandingpage >(set session, 301)> newsite
in more detail:
SE > click
oldsite.com/mypage.php > 301 to
newsite.com/landingpage.php?goto=mypage.php (set a session variable) > 301 to
newsite.com/mypage.php
I used that once as a rerouting and tracking module for PHPAdsNew, and it worked. But I was using a normal header() redirection, without the 301 error message. I'd like to see if it works for 301 redirection too.
try it and check each step using the server header tool [webmasterworld.com]
AFAIK Google will not "pass PageRank" to your new page. The new page is not the same as the old page; it has to earn PR on its own merit. That will happen via all the backlinks being redirected in.
See the "problem" is that 301 redirection is supposed to be completely transparent. It shoves the user off to another page without any noise or compaint - and leaves no trace of its interference. That's normally a good thing...
I'm running out of ideas. this problem has intrigued me, I want to know the solution, if there is one
Old site does a 301 and logs the visitor >> New site shows the page, checks the log on old site, and displays a message accordingly.
Not easy but could work unless I've forgotten something important ;)
However, personally I would do away with the warning completely and just use the 301 for everyone. Most users won't change their bookmarks even if you ask - they just want to see their content.
httpwebwitch - I'm not too bothered about the actual PR, but Google does move the SE listings and page rank (not PR) to the new URL, which we are bothered about.
I think we're going to give up trying to track the 301, but instead we will use cookies to display a message to all new visitors for a couple of months.
Thanks again.
Jiff
I added a page to a site last year. The only links to the page were pointing to /thepage.html#section1 and to /thepage.html#section2 and I did not realise that was the case for many months.
The page was indexed as thepage.html just a few days after going online. The page is still indexed, and still does not have any other incoming links (as far as I am aware) to it.