Skip to content

Simple package to redirect www domains to non-www in your Laravel application.

Notifications You must be signed in to change notification settings

redcenter/laravel-www-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Laravel WWW Redirect

Simple package to redirect www domains to non-www in your Laravel application.

Install

Install with composer
$ composer require redcenter/laravel-www-redirect

Adding middleware

Add the middleware class to your Kernel.php in App\Http:

    protected $middlewareGroups = [
        'web' => [
            ...
            LaravelWwwRedirectMiddleware::class,
            ...
        ],
    ];

Questions?

You can contact me through my website: redcenter.nl

Good bye!

Check out the documentation on Bitbucket for all details!

https://bitbucket.org/redcenter/laravel-www-redirect

About

Simple package to redirect www domains to non-www in your Laravel application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published