Remove index.php on the URL to optimize for SEO

Tram Ho

When using the Laravel framwork, you are no stranger to the index.php on the default URL on Laravel, this does not affect the logic but it affects your SEO website. A prime example is Laravel’s homepage:

Here I will guide you to skip index.php by editing appProvidersRouteServiceProvider.php as follows

Good luck. Happy coding and peace out ✌️

Share the news now

Source : Viblo