Plack-Middleware-TrailingSlash
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Redirect to a path containing the trailing slash if the path looks like a directory
Plack-Middleware-TrailingSlash
==============================

Redirect to a path containing the trailing slash if the path looks like a directory

The Catalyst Perl MVC framework matches the requested URL to an action both with and without the trailing slash.
For example both /company/contact and /company/contact/ go to the same action and same template.

This module redirects the requests without the trailing slash (ie. /company/contact) to the same URL with the
trailing slash added (ie. /company/contact/).

Advantages:
 * relative links and references work reliably
 * search engines will not see duplicate content

Alternatives:
 * Use <base href> in every
   response.

TODO:
 * Proper usage documentation (perldoc)
 * Publish in CPAN

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。