t3n/seo-routing

Last activity on 12 December 2020
  • 1
  • 3348
composer require t3n/seo-routing

Flow Framework Router to ensure a trailing slash

3.0.2

Flow Framework Router to ensure a trailing slash

Version
3.0.2
Type
neos-package
Release Date
11.03.2020 08:24:50
Source
git
Distribution
zip
Requires
Requires (dev)
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 4cb4af45098658970e7e22abc8c0989a1eeaaa9f

CircleCI Latest Stable Version Total Downloads License

t3n.SEO.Routing

This package has 2 main features:

  • trailingSlash: ensure that all links ends with a trailing slash (e.g. example.com/test/ instead of example.com/test)
  • toLowerCase: ensure that camelCase links gets redirected to lowercase (e.g. exmaple.com/lowercase instead of exmaple.com/lowerCase)

You can de- and activate both of them.

Another small feature is to restrict all new neos pages to have a lowercased uriPathSegment. This is done by extending the NodeTypes.Document.yaml.

Installation

Just require it via composer:`

composer require t3n/seo-routing

Configuration

Standard Configuration

In the standard configuration we have activated the trailingSlash (to redirect all uris without a / at the and to an uri with / at the end) and do all redirects with a 301 http status.

Note: The lowercase redirect is deactivated by default, cause you have to make sure, that there is no uriPathSegment with camelCase or upperspace letters - this would lead to redirects in the neverland.

t3n:
  SEO:
    Routing:
      redirect:
        enable:
          trailingSlash: true
          toLowerCase: false
        statusCode: 301
      blacklist:
        '/neos/.*': true

Blacklist for redirects

By default, all /neos/ URLs are ignored for redirects. You can extend the blacklist array with regex as you like:

t3n:
  SEO:
    Routing:
      #redirect:
        #...
      blacklist:
        '/neos/.*': true
The content of the readme is provided by Github
The same vendor provides 11 package(s).