Author Topic: Redirecting to a new server  (Read 3573 times)

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Redirecting to a new server
« on: June 18, 2008, 02:52:13 PM »
So I'm gearing up to move our crappy internet pages to my nicer intranet pages which are on a different server.  I'm making directory structure changes in the process also.

Once I have the new pages finalized I'm gonna redirect the old pages to the new pages.  That i can handle.  What I'm trying to think of is this:
I want to be able to have some type of banner that says something like "We have moved servers.  Please update your bookmarks."  Now I can easily add a get variable to the redirect and look for that but then I'm afraid that they'll bookmark the page with it there which I obviously don't want.  It doesn't seem that redirecting and passing POST data is allowed so that is out.

I'm thinking that I can check the referer and see if it is the old server but that isn't 100%.  All the new files include a single template file so I can do the processing there for instead of having to do it in each file.

Anyone have any better ideas?

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: Redirecting to a new server
« Reply #1 on: June 18, 2008, 02:55:59 PM »
Replace the files on the old server with a simple "we have moved" page.  Give them a link to the new site and tell them to bookmark it.  They'll hit it once and never do it again.

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Redirecting to a new server
« Reply #2 on: June 18, 2008, 02:58:14 PM »
Oh sorry, should have said I won't do that, nor will I do meta redirects.  I don't believe in making people just through extra steps just because I moved the data.  Meta redirects I won't do because they are evil.

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: Redirecting to a new server
« Reply #3 on: June 18, 2008, 03:14:33 PM »
The manual step is a one time pain... avoiding it will only make the people lazy because they can still use the old bookmark to get to where they need to go.  Trust me.  I've been down this path.  Make it a touch harder and save yourself headaches down the road.

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
Re: Redirecting to a new server
« Reply #4 on: June 18, 2008, 03:16:23 PM »
Do you really think people are going to upgrade their bookmarks if you handle the redirect for them?

Oh, I chuckle at the faith in users people have. I'm with Ober on this one, if you want to make them upgrade the bookmarks, you're best off forcing them to do so, otherwise they're just going to keep going to the old bookmarks and let you move them around to where they need to be.
This signature intentionally left blank.

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Redirecting to a new server
« Reply #5 on: June 18, 2008, 03:20:45 PM »
Eventually I will remove the redirect.  But I have to give them time to update their links.  When it is my fault I make it painless.  If they don't want to repay my kindness then they'll pay for it when the page disappears on their ass and all that is left is a link to the main page (not even the page they were looking for).

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: Redirecting to a new server
« Reply #6 on: June 18, 2008, 03:24:44 PM »
I still think you're approaching this the wrong way.  Believe in my experience!

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
Re: Redirecting to a new server
« Reply #7 on: June 18, 2008, 03:27:50 PM »
It's half empty man, get used to it.
This signature intentionally left blank.

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Redirecting to a new server
« Reply #8 on: June 18, 2008, 03:40:47 PM »
I still think you're approaching this the wrong way.  Believe in my experience!
Or you can try to understand where I'm coming from and try offering an actual solution.  I see what you are saying but I disagree with the approach.

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: Redirecting to a new server
« Reply #9 on: June 18, 2008, 03:44:05 PM »
That's the only valid solution I have in your situation.

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Redirecting to a new server
« Reply #10 on: June 18, 2008, 03:55:10 PM »
Ok found one solution: cookies.  While I am changing servers I'm only changing subdomains which means that I can create a cookie for the domain.  Give it a short expire time (thinking a couple of minutes or so) and it doesn't interfer much.

I figure after about a month I'll stop the redirect and just have a notice with the link.  Month after that I'll remove the site completely.

Edit:  Of course that time line will depend on my higher ups :(

webwhy

  • Jackass IV
  • Posts: 608
  • Karma: +15/-10
Re: Redirecting to a new server
« Reply #11 on: June 18, 2008, 04:00:23 PM »
Can you provide more detail as to why you can't support the original URL?  What server software are you using?

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Redirecting to a new server
« Reply #12 on: June 18, 2008, 04:06:04 PM »
Server from is running IIS and server to is running Apache.  The two servers are maintained by two different groups here.  My department doesn't have full run of either server so it would require changing it for one directory tree.  I know it is possible but given the politics here I would say it is infeasible.

webwhy

  • Jackass IV
  • Posts: 608
  • Karma: +15/-10
Re: Redirecting to a new server
« Reply #13 on: June 18, 2008, 04:27:38 PM »
okay...shame since a dns change, an apache vhost, .htaccess file with mod_rewrite rules, and some planning would have made a change to URL unnecessary...

you should ask WTF your IT department is good for, if they can't cooperate with each other and work with developers in situations like this. 

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Redirecting to a new server
« Reply #14 on: June 18, 2008, 04:30:54 PM »
Well only the server we are moving to is controlled by IT.  The one we are moving from has a history that seems... interesting and I'm not sure 100% what is going on with it.

edit:  TBH I'm not even 100% sure we've told all the higher ups or those running the current server that we are moving.