Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

bavix/laravel-middleware-ifindex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-middleware-ifindex

This package solves SEO problems.

http://example/index.php -> 301, http://example/
http://example/index.php/en -> 301, http://example/en
http://example/index.php/en?query -> 301, http://example/en?query

First, require this package in your composer file

composer require bavix/laravel-middleware-ifindex

After updating, add the ServiceProvider to the array of providers in config/app.php. If you use laravel 5.5 above, miss this step.

Bavix\Providers\IfIndexProvider::class,

Supported by

Supported by JetBrains