Skip to content

Zend Framework 2 module to trim trailing slashes from requests

License

Notifications You must be signed in to change notification settings

dillchuk/rdn-trailing-slash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RdnTrailingSlash

The RdnTrailingSlash ZF2 module trims the trailing slash in a path and then redirects the request if it does not match an existing route.

Installation

  1. Use composer to require the radnan/rdn-trailing-slash package:

    $ composer require radnan/rdn-trailing-slash:1.*
  2. Activate the module by including it in your application.config.php file:

    <?php
    
    return array(
        'modules' => array(
            'RdnTrailingSlash',
            // ...
        ),
    );

That's it! The module will take care of the rest.

About

Zend Framework 2 module to trim trailing slashes from requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%