public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Major site redesign, SEO, and 301 redirects
Date: Thu, 1 Oct 2015 13:58:47 +0200	[thread overview]
Message-ID: <560D1FF7.1020605@gmail.com> (raw)
In-Reply-To: <560D1A76.5020502@libertytrek.org>

On 01/10/2015 13:35, Tanstaafl wrote:
> Thanks Alan (and everyone else),
> 
> One important follow-up below...
> 
> On 9/29/2015 8:28 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>> It would be wise to clarify with the devs exactly what it is they are
>> looking for.
> 
> That is the purpose of my upcoming phone call with him.
> 
>> And overall, in your shoes I would be firm, adamant and above all polite
>> and say that infrastructure changes go through you and you alone, and
>> must be vetted by you with full transparency.
> 
> That is what I've been doing so far, but I think the boss is getting
> close to just saying 'give it to them'...

Depending on how senior you are in the place, as technical guy you have
a duty to perform diligence. Persist.

> 
> But - no one has addressed my main question...
> 
> I understand that 301 redirects are performed by web servers only, you
> can't really do these in DNS. However, some Managed DNS providers -
> DNSMadeEasy included - offer this ability as a service. DNSMadeEasy
> calls  them 'http redirects', and the actual redirect is accomplished by
> one of their own web servers they have set up to handle these.

Information is still sparse, so I'm having to fill in the blanks a lot.
Here's what I imagine is probably happening:

The only useful thing you can get out of DNS for an HTTP request is an A
record for an IP address.

Say you are example.com and do your own DNS; www.example.com is 1.2.3.4.
A SaaS provider can control your DNS and they set the TTL on that A
record very low so (like DynDNS does) they can point it at their web
servers.

A request comes in for http://www.example.com/index.html, and your DNS
cache needs to query it. The provider's DNS returns 2.3.4.5 which is the
provider's front end web server. That web server figures out the address
is your's, and issues a 301 to the user, which takes them to the
production web server with the real site on it.

Providers do this a lot so they can load balance web sites, redirect
users to local nearby web servers and other optimizations. The downside
is they need to control your DNS.

Me, personally I would never allow that, not for the entire domain. I
would rather delegate the specific address they want to control
(www.example.com) and let them tweak that all day if they like.

> Is it 'normal' to do these 301 redirects at the DNS level like that? I
> would think they should be using the current web server hosting the
> current site to start doing the redirects as they get the new landing
> pages done?

Depends what their business model is. If they deliver the full service,
they'd have to do something like I described above for it to work.

This is assuming the contractor is a full SaaS provider and not only a
web-site developement company

> Apache does this using a .htaccess file (if I'm interpreting
> my googling responses correctly).

An .htaccess file is nothing special, all it is is a config file that
can contain whatever directives are allowed in httpd.conf but applies
only to the directive .htaccess is in. Everything in .htaccess is a
valid directive that can go in httpd.conf, but not necessarily the other
way round. They are especially useful for shared hosting where you want
your customers to be able to tweak specific directives for their sites
and you can't give them access to httpd.conf and really can't be
bothered doing it for them for every requested change :-)

So when google gives a result saying "do it in .htaccess", that's the
internetz being meaningless. What it really means is "configure apache
to do a redirect for URLs that look like so"


> And now that I worded it that way - how would they do that exactly?
> Would the proper method be to redirect it to a new test domain, ie:
> 
> www.example.com/page1.htm >> www.new-example.com/newpage1.htm ?
> 
> Or save the new page on the old server, then do:
> 
> www.example.com/page1.htm >> www.example.com/newpage1.htm ?
> 
> Now I'm confusing myself...


It can get confusing. Best to ask them directly what they intend to do.
We can presume all day and never figure it out.


-- 
Alan McKinnon
alan.mckinnon@gmail.com



  reply	other threads:[~2015-10-01 11:59 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 20:00 [gentoo-user] Major site redesign, SEO, and 301 redirects Tanstaafl
2015-09-29 20:19 ` J. Roeleveld
2015-09-29 20:39   ` Alan McKinnon
2015-09-30  0:02     ` [gentoo-user] " James
2015-10-01 11:22       ` Tanstaafl
2015-10-01 11:25         ` Alan McKinnon
2015-09-30  0:28 ` [gentoo-user] " Alan McKinnon
2015-09-30  7:36   ` Mick
2015-10-01 11:26     ` Tanstaafl
2015-10-01 11:35   ` Tanstaafl
2015-10-01 11:58     ` Alan McKinnon [this message]
2015-10-01 12:21       ` Tanstaafl
2015-10-01 14:35         ` Mick
2015-10-01 23:00           ` Walter Dnes
2015-10-02  7:41             ` Mick
  -- strict thread matches above, loose matches on Subject: below --
2015-09-19 19:36 [gentoo-user] update problems lee
2015-09-19 19:57 ` Alan McKinnon
2015-09-19 22:17   ` Rich Freeman
2015-09-19 22:46     ` Alan McKinnon
2015-09-20  0:37       ` Philip Webb
2015-09-20 11:52         ` Neil Bothwick
2015-09-20 12:06           ` Rich Freeman
2015-09-22 20:11             ` [gentoo-user] " James
2015-09-26  9:47     ` [gentoo-user] " lee
2015-09-26 11:33       ` Alan McKinnon
2015-09-27 19:17         ` lee
2015-09-27 21:29           ` Alan McKinnon
2015-09-28 22:52             ` lee
2015-09-28 23:46               ` Alec Ten Harmsel
2015-09-29 18:56                 ` lee
2015-09-29  0:09               ` Neil Bothwick
2015-09-29 18:45                 ` lee
2015-09-29 19:36                   ` Alan Mackenzie
2015-10-03 17:27                     ` lee
2015-10-01  9:39                   ` Neil Bothwick
2015-10-01 11:10                     ` Rich Freeman
2015-10-01 13:27                       ` Neil Bothwick
2015-10-03 18:10                     ` lee
2015-10-03 20:01                       ` allan gottlieb
2015-09-20 14:25   ` lee
2015-09-20 17:24     ` J. Roeleveld
2015-09-20 17:31       ` Rich Freeman
2015-09-26 13:51         ` lee
2015-09-26 15:09           ` Rich Freeman
2015-09-27 19:35             ` lee
2015-09-26 16:28           ` Neil Bothwick
2015-09-26 13:10       ` lee
2015-09-26 15:31         ` J. Roeleveld
2015-09-26 16:47         ` Neil Bothwick
2015-09-26 18:16           ` Alan McKinnon
2015-09-26 20:58             ` Neil Bothwick
2015-09-19 20:05 ` Neil Bothwick
2015-09-19 20:11   ` Alan McKinnon
2015-09-19 20:12   ` Mick
2015-09-20 15:28   ` lee
2015-09-20 15:57     ` Rich Freeman
2015-09-20 16:29     ` Alan McKinnon
2015-09-26 15:00       ` lee
2015-09-27 13:14         ` Alan McKinnon
2015-09-20 16:35     ` Neil Bothwick
2015-09-21  1:29   ` Paul Colquhoun
2015-09-19 21:29 ` Daniel Frey
2015-09-20 18:07   ` [gentoo-user] " James
2015-09-20 19:35     ` Daniel Frey
2015-09-20 20:59       ` Dale
2015-09-22 15:55         ` James
2015-09-22 16:03           ` Alan McKinnon
2015-09-22 16:39             ` James
2015-09-22 17:17               ` Alan McKinnon
2015-09-22 16:42             ` Neil Bothwick
2015-09-22 17:08               ` Alan McKinnon
2015-09-22 17:35               ` James
2015-09-22 18:08                 ` Neil Bothwick
2015-09-22 19:05             ` Dale
2015-09-20 20:24     ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=560D1FF7.1020605@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox