Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: vs.

by tinita (Parson)
on Nov 02, 2010 at 15:28 UTC ( #869021=note: print w/replies, xml ) Need Help??

in reply to Re: vs.
in thread vs.

You mention two advantages:
One advantage is that this way one can have different login cookies for the different domains.
Well, that only makes sense if you have two accounts or want to test something. for the majority of the users and guests this is of no use. I'd rather have one single subdomain for things like that than 5 different domains that all look like live domains.
The other is that this way we can make people use relative links when they link to a writeup from another
I don't understand that. You are saying that because there are 5 different (sub)domains, we can have relative links? That would imply that once we only have one working domain we couldn't have relative links any more?
I think you rather mean: "The different domains are no problem because we have relative links" instead of "We can have relative links because we have different domains".
So, this is no reason to have several domains.
And if you link to perlmonks from outside (from other sites, from IRC etc.) then you regularly get a link to the domain you are not logged in at the moment. To read the article in your favourite theme and to vote on nodes you have to repair the link to use "your" domain (the one you already have a session cookie).
I can see no good reason to use all those domains. I would add an apache rewrite rule to depending on the host. And if really necessary, add a "testing" subdomain for using two different accounts at the same time.
  • Comment on Re^2: vs.

Replies are listed 'Best First'.
Re^3: vs. (history)
by tye (Sage) on Nov 02, 2010 at 17:48 UTC

    I'm not "logged in" to any of those 6 host names. I like the reduced risk of somebody tricking my browser into submitting to PerlMonks in a way that my identity will be misused.

    Instead, I have several "secret" host names in /etc/hosts on each system where I log in to PerlMonks more than temporarily.

    The 6 host names are an artifact of history. But there are people using multiples of them. And any registered monk can have use for more than one host name because it can be useful to conveniently see how Anonymous Monk sees something.

    And just vs. (or even makes it somewhat difficult to have multiple login states since cookies get shared in one direction in such a case (but not in the other direction).

    So, it would be possible to add more than one * host name and turn the other 5 existing host names into redirects to, but that would require several people to make adjustments and so should include a plan w/ announcements and a schedule and such. And that could well happen one day. There are advantages, as noted already.

    (Also, I don't have access to make adjustments to perlmonks.* DNS configuration nor does any active member of gods, that I am aware of. I've been meaning to try to change that, though.)

    But it isn't like it is a big priority to do this. PerlMonks' SEO is just fine, thankyouverymuch. And we had already told Google that was the official host name for the 6 different host names. But Google was still indexing the same page more than once so this notification isn't perfect (and doesn't cover the non-Google search engines).

    Higher priority tasks would include: Block robots from the "comment on" and "reply" links and provide "canonical URL" information for most pages. And there are a bunch of other search-engine-related improvements of rather low priority that I'd still put above deprecating host names (and don't look like they are going to happen any time soon).

    - tye        

      And just vs. (or even makes it somewhat difficult to have multiple login states since cookies get shared in one direction in such a case (but not in the other direction).
      If you have "www." and "testing." no cookies will be shared between those two (if the cookie domain is not set to "" explicitly, of course).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://869021]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-02-20 06:54 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (294 votes). Check out past polls.