Ticket #47 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 months ago

Remove unnecessary .html suffixes

Reported by: bergie Assigned to: tarjei
Priority: minor Milestone: 8.09.0 Ragnaroek
Component: MidCOM component Version:
Keywords: Cc:

Description

W3C suggests that site producers shouldn't refer to specific technologies in URLs. Therefore, we should start removing the .html suffixes from URLs in MidCOM.

"cgi", even ".html" is something which will change. You may not be using HTML for that page in 20 years time, but you might want today's links to it to still be valid. The canonical way of making links to the W3C site doesn't use the extension.(how?)

Change History

06/02/07 22:07:46 changed by bergie

(In [6144]) Remove .html suffixes, refs #47

09/11/07 11:15:10 changed by bergie

(In [12112]) Removing .html suffixes, refs #47

09/11/07 13:34:23 changed by bergie

(In [12123]) Some minor UI improvements, refs #47

12/21/07 12:56:17 changed by rambo

But when removing the suffix DO ADD a trailing slash so that wget (or similar) dumps will still work.

01/07/08 10:31:35 changed by bergie

(In [14246]) Remove .html, refs #47

01/07/08 10:37:31 changed by bergie

(In [14247]) Backporting [14246]: Remove .html, refs #47

03/13/08 14:33:50 changed by bergie

  • milestone changed from MidCOM 3.0 to MidCOM 2.9.

09/26/08 10:19:34 changed by rambo

(In [17703]) forward port r17700, refs #47

09/26/08 10:53:24 changed by rambo

(In [17704]) remove .html suffixes, refs #47

09/26/08 10:57:51 changed by rambo

(In [17705]) forward port r17704, refs #47

09/26/08 11:02:00 changed by rambo

(In [17708]) remove .html suffixes, refs #47

09/26/08 11:03:55 changed by rambo

(In [17709]) forward port r17708, refs #47

09/26/08 11:10:27 changed by rambo

(In [17711]) remove .html suffixes, refs #47

09/26/08 11:12:30 changed by rambo

(In [17712]) forward port r17711, refs #47

09/26/08 11:20:08 changed by rambo

(In [17713]) remove .html suffixes, refs #47

09/26/08 11:21:34 changed by rambo

(In [17714]) forward port r17713, refs #47

09/26/08 12:43:08 changed by rambo

(In [17715]) make on MidCOM level (relatively) sure .html URLs are not used by 301:ing them to trailing-slash version, refs #47

09/26/08 12:45:31 changed by rambo

(In [17716]) forward port r17715, refs #47

09/26/08 13:33:19 changed by rambo

(In [17722]) remove .html suffixes, refs #47

09/26/08 13:33:57 changed by rambo

(In [17723]) forward port r17722, refs #47

09/26/08 13:39:33 changed by rambo

Hint of the day: find .php files that refer to .html, but not the (l)gpl.html -license url

pcregrep -r -l '(?<!gpl)\.html' *  2>/dev/null | grep -v '\.svn' | grep -e '\.php'

remove the last piped grep to see other than .php files.

And to load them all to editor (vi used as an example)

vi `pcregrep -r -l '(?<!gpl)\.html' *  2>/dev/null | grep -v '\.svn' | grep -e '\.php'`

09/26/08 13:49:56 changed by bergie

(In [17724]) Remove .html suffixes, refs #47

09/26/08 13:50:52 changed by rambo

(In [17725]) clean the .html suffixes from core examples as well, refs #47

09/26/08 13:55:38 changed by bergie

(In [17726]) Remove .html suffixes, refs #47

09/26/08 14:00:38 changed by bergie

(In [17727]) Remove .html suffixes, refs #47

09/26/08 14:16:23 changed by bergie

(In [17728]) Remove .html suffixes, refs #47

09/26/08 14:17:25 changed by bergie

(In [17729]) Remove .html suffixes, refs #47

09/26/08 14:23:25 changed by bergie

(In [17731]) Remove .html suffixes, refs #47

09/26/08 15:37:07 changed by bergie

(In [17736]) Remove .html suffixes, refs #47

09/30/08 14:12:39 changed by bergie

  • milestone changed from MidCOM 2.9 to 8.09 Ragnaroek.

09/30/08 15:50:52 changed by bergie

  • status changed from new to closed.
  • resolution set to fixed.

I think this is mostly done.