2017 © Pedro Peláez
 

symfony-bundle router-unslash

This Bundle redirects user who have mistyped the URL a bit

image

amnl/router-unslash

This Bundle redirects user who have mistyped the URL a bit

  • Wednesday, July 24, 2013
  • by itavero
  • Repository
  • 2 Watchers
  • 7 Stars
  • 161 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AMNL \ Router Unslash Bundle

Latest Stable Version Total Downloads, (*1)

When I tested one of my websites with Nibbler it gave the following useful advice:, (*2)

Adding or removing a trailing slash to all URLs of this site returns an error page . This is OK as no content is being duplicated, but visitors might try browsing to the pages of this website with or without a trailing slash. Ideally, the alternate URL should redirect to the correct page., (*3)

So I created this easy bundle that automates these kind of redirects., (*4)

Configuration

Below you will find the default configuration, (*5)

# Router Unslash
amnl_router_unslash:
  permanent: false   # True = 301, False = 302
  public: true       # Public cache?
  maxage: 1800       # Cache-Control max-age
  smaxage: 21600     # Cache-Control s-maxage

The Versions

24/07 2013

dev-master

9999999-dev http://github.com/itavero/RouterUnslashBundle

This Bundle redirects user who have mistyped the URL a bit

  Sources   Download

MIT

The Requires

 

redirect ux