Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16332

Re: Canonical URLs, truncated URLs, redirects and SEO

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.php
Subject Re: Canonical URLs, truncated URLs, redirects and SEO
Date 2016-01-23 13:09 +0000
Organization A noiseless patient Spider
Message-ID <87si1o4f32.fsf@bsb.me.uk> (permalink)
References <n7r1eb$cb1$1@dont-email.me> <n7t5n3$era$1@news.metronet.hr> <n7td5h$7ic$1@dont-email.me> <56A252EF.1060403@arnowelzel.de> <n7vpqq$afk$1@dont-email.me>

Show all headers | View raw


James Harris <james.harris.1@gmail.com> writes:
<snip>
> That is very much the kind of thing I want to do. But I would include
> a unique code, probably a decimal number. For example, the file itself
> could be
>
>   /partition/essay/1053-long-file-name.ext
>
>   "partition" is for a partition of the site.
>   "essay" is a sample subfolder name, in this case for essays.
>   "1053-" is the unique code indicating which essay was to be served.
>   The rest of the name is mainly for human convenience.
>
> Naturally, each such essay would begin with a unique number and a hyphen.
>
> The question is what two URL forms to use in order to get to that
> file. The short URL would basically just need to know the partition,
> the subfolder, and the 1053 code. The canonical URL would also include
> the human-useful text. Canonical URL options for the above file are
> things like
>
>   http://my-site.com/partition/essay-1053/long-file-name
>   http://my-site.com/partition/essay/1053/long-file-name
>   http://my-site.com/partition/essay/long-file-name-1053
>   http://my-site.com/partition/essay/long-file-name/1053
>
> And the short form could be one of
>
>   http://my-site.com/partition/essay-1053
>   http://my-site.com/partition/essay/1053
<snip>
> I am thinking that the only true key would be the decimal number. Even
> for the URL with the long file name I don't see a need to use anything
> other than the number to find the file.

Which suggests the short form could be

  http://my-site.com/essay-1053

or even

  http://my-site.com/1053

Not that there's any harm in providing a medium length form as well
since the "partition" and "essay" bits do convey some information to the
reader.

-- 
Ben.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Canonical URLs, truncated URLs, redirects and SEO James Harris <james.harris.1@gmail.com> - 2016-01-21 16:39 +0000
  Re: Canonical URLs, truncated URLs, redirects and SEO crankypuss <invalid@invalid.invalid> - 2016-01-21 11:22 -0700
    Re: Canonical URLs, truncated URLs, redirects and SEO James Harris <james.harris.1@gmail.com> - 2016-01-22 13:58 +0000
  Re: Canonical URLs, truncated URLs, redirects and SEO Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-21 19:16 +0000
    Re: Canonical URLs, truncated URLs, redirects and SEO James Harris <james.harris.1@gmail.com> - 2016-01-22 14:03 +0000
  Re: Canonical URLs, truncated URLs, redirects and SEO Richard Yates <richard@yatesguitar.com> - 2016-01-21 12:31 -0800
    Re: Canonical URLs, truncated URLs, redirects and SEO Allodoxaphobia <knock_yourself_out@example.net> - 2016-01-21 22:42 +0000
  Re: Canonical URLs, truncated URLs, redirects and SEO Goran <goran@nospam.com> - 2016-01-22 13:01 +0100
    Re: Canonical URLs, truncated URLs, redirects and SEO James Harris <james.harris.1@gmail.com> - 2016-01-22 14:11 +0000
      Re: Canonical URLs, truncated URLs, redirects and SEO Arno Welzel <usenet@arnowelzel.de> - 2016-01-22 17:03 +0100
        Re: Canonical URLs, truncated URLs, redirects and SEO James Harris <james.harris.1@gmail.com> - 2016-01-23 11:59 +0000
          Re: Canonical URLs, truncated URLs, redirects and SEO Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-23 13:09 +0000
            Re: Canonical URLs, truncated URLs, redirects and SEO James Harris <james.harris.1@gmail.com> - 2016-01-23 16:17 +0000
              Re: Canonical URLs, truncated URLs, redirects and SEO "R.Wieser" <address@not.available> - 2016-01-23 20:11 +0100
                Re: Canonical URLs, truncated URLs, redirects and SEO James Harris <james.harris.1@gmail.com> - 2016-01-24 21:35 +0000
  Re: Canonical URLs, truncated URLs, redirects and SEO Eli the Bearded <*@eli.users.panix.com> - 2016-01-25 22:20 +0000

csiph-web