Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Major site redesign, SEO, and 301 redirects
Date: Thu, 01 Oct 2015 11:59:26
Message-Id: 560D1FF7.1020605@gmail.com
In Reply to: Re: [gentoo-user] Major site redesign, SEO, and 301 redirects by Tanstaafl
1 On 01/10/2015 13:35, Tanstaafl wrote:
2 > Thanks Alan (and everyone else),
3 >
4 > One important follow-up below...
5 >
6 > On 9/29/2015 8:28 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
7 >> It would be wise to clarify with the devs exactly what it is they are
8 >> looking for.
9 >
10 > That is the purpose of my upcoming phone call with him.
11 >
12 >> And overall, in your shoes I would be firm, adamant and above all polite
13 >> and say that infrastructure changes go through you and you alone, and
14 >> must be vetted by you with full transparency.
15 >
16 > That is what I've been doing so far, but I think the boss is getting
17 > close to just saying 'give it to them'...
18
19 Depending on how senior you are in the place, as technical guy you have
20 a duty to perform diligence. Persist.
21
22 >
23 > But - no one has addressed my main question...
24 >
25 > I understand that 301 redirects are performed by web servers only, you
26 > can't really do these in DNS. However, some Managed DNS providers -
27 > DNSMadeEasy included - offer this ability as a service. DNSMadeEasy
28 > calls them 'http redirects', and the actual redirect is accomplished by
29 > one of their own web servers they have set up to handle these.
30
31 Information is still sparse, so I'm having to fill in the blanks a lot.
32 Here's what I imagine is probably happening:
33
34 The only useful thing you can get out of DNS for an HTTP request is an A
35 record for an IP address.
36
37 Say you are example.com and do your own DNS; www.example.com is 1.2.3.4.
38 A SaaS provider can control your DNS and they set the TTL on that A
39 record very low so (like DynDNS does) they can point it at their web
40 servers.
41
42 A request comes in for http://www.example.com/index.html, and your DNS
43 cache needs to query it. The provider's DNS returns 2.3.4.5 which is the
44 provider's front end web server. That web server figures out the address
45 is your's, and issues a 301 to the user, which takes them to the
46 production web server with the real site on it.
47
48 Providers do this a lot so they can load balance web sites, redirect
49 users to local nearby web servers and other optimizations. The downside
50 is they need to control your DNS.
51
52 Me, personally I would never allow that, not for the entire domain. I
53 would rather delegate the specific address they want to control
54 (www.example.com) and let them tweak that all day if they like.
55
56 > Is it 'normal' to do these 301 redirects at the DNS level like that? I
57 > would think they should be using the current web server hosting the
58 > current site to start doing the redirects as they get the new landing
59 > pages done?
60
61 Depends what their business model is. If they deliver the full service,
62 they'd have to do something like I described above for it to work.
63
64 This is assuming the contractor is a full SaaS provider and not only a
65 web-site developement company
66
67 > Apache does this using a .htaccess file (if I'm interpreting
68 > my googling responses correctly).
69
70 An .htaccess file is nothing special, all it is is a config file that
71 can contain whatever directives are allowed in httpd.conf but applies
72 only to the directive .htaccess is in. Everything in .htaccess is a
73 valid directive that can go in httpd.conf, but not necessarily the other
74 way round. They are especially useful for shared hosting where you want
75 your customers to be able to tweak specific directives for their sites
76 and you can't give them access to httpd.conf and really can't be
77 bothered doing it for them for every requested change :-)
78
79 So when google gives a result saying "do it in .htaccess", that's the
80 internetz being meaningless. What it really means is "configure apache
81 to do a redirect for URLs that look like so"
82
83
84 > And now that I worded it that way - how would they do that exactly?
85 > Would the proper method be to redirect it to a new test domain, ie:
86 >
87 > www.example.com/page1.htm >> www.new-example.com/newpage1.htm ?
88 >
89 > Or save the new page on the old server, then do:
90 >
91 > www.example.com/page1.htm >> www.example.com/newpage1.htm ?
92 >
93 > Now I'm confusing myself...
94
95
96 It can get confusing. Best to ask them directly what they intend to do.
97 We can presume all day and never figure it out.
98
99
100 --
101 Alan McKinnon
102 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Major site redesign, SEO, and 301 redirects Tanstaafl <tanstaafl@×××××××××××.org>