Feature #86160

Add the possibility to use .html suffix in seo friendly URLs

Added by Wolfgang Wagner about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2018-09-06
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

As an integrator, I would like to have the possibility to use the .html suffix for seo friendly URLs.

Even though it's not important as a ranking factor, I think, this should be configurable in view of upgrades of websites, which have many pages with .html in search machine indexes.
This could also be important for a migration from realurl or cooluri to the new routing in TYPO3 9.

Associated revisions

Revision 1e10c48e (diff)
Added by Benni Mack 12 months ago

[FEATURE] Introduce PageTypeEnhancer

A new PageTypeEnhancer is added to map the internal TYPO3
GET parameter `type` to a speaking URL suffix.

The PageTypeEnhancer only does suffixes, if other

You can configure it like this:

routeEnhancers:
PageType:
type: PageType
default: ''
map:
'.html': 1
'menu.json': 13

Resolves: #86160
Releases: master
Change-Id: Ie4b387963012946272568a69c9581e8d345dbe4c
Reviewed-on: https://review.typo3.org/58478
Reviewed-by: Oliver Hader <>
Tested-by: Oliver Hader <>
Tested-by: TYPO3com <>
Reviewed-by: Frank Naegler <>
Tested-by: Frank Naegler <>

Revision d419c64c (diff)
Added by Daniel Siepmann 12 months ago

[TASK] Adjust rst syntax for proper yaml and ts highlighting

Use proper code highlighting syntax for yaml and typoscript within 86160
changelog entry.

Resolves: #86160
Releases: master
Change-Id: I791956413885cabdfdf5693e9d0ad6c4be41a29d
Reviewed-on: https://review.typo3.org/58515
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>
Tested-by: TYPO3com <>
Reviewed-by: Josef Glatz <>
Tested-by: Josef Glatz <>
Reviewed-by: Susanne Moog <>
Tested-by: Susanne Moog <>

History

#1 Updated by Georg Ringer about 1 year ago

  • Status changed from New to Accepted
  • Target version set to 9 LTS

#2 Updated by Frank Naegler about 1 year ago

I think this a not really important feature.
For the migration from realurl or other URL extensions, a simple redirect rule for *.html to * would cover the SEO related part.
From my point of view, this is a nice to have feature, just my 2 cents :)

#3 Updated by Gerrit Code Review 12 months ago

  • Status changed from Accepted to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#4 Updated by Gerrit Code Review 12 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#5 Updated by Gerrit Code Review 12 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#6 Updated by Gerrit Code Review 12 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#7 Updated by Gerrit Code Review 12 months ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#8 Updated by Gerrit Code Review 12 months ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#9 Updated by Gerrit Code Review 12 months ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#10 Updated by Gerrit Code Review 12 months ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#11 Updated by Gerrit Code Review 12 months ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#12 Updated by Gerrit Code Review 12 months ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#13 Updated by Gerrit Code Review 12 months ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#14 Updated by Gerrit Code Review 12 months ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58478

#15 Updated by Benni Mack 12 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#16 Updated by Gerrit Code Review 12 months ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58515

#17 Updated by Daniel Siepmann 12 months ago

  • Status changed from Under Review to Resolved

#18 Updated by Wolfgang Wagner 12 months ago

I tried this configuration in the site config:

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: '.html'
    map:
      '.html': 0

This works fine for subpages like mydomain.com/page-1.html, but not for the homepage. The URL created is
domain.com/.html
which results in an server error (403)

#19 Updated by Benni Mack 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF