Support the ongoing development of Laravel.io →
Configuration

It looks like my entire Laravel application can be accessed from the base url (ie /this/that) and with the index.php version (ie /index.php/this/that). Is this how things are setup out of the box? Or have I misconfigured something. From what I understand this is a big SEO issue since it's creating duplicate content for my whole site.

I'm using nginx as my server and I've setup my config as per the docs. Is there a way to get the URL to strip out the index.php and do a permanent redirect?

Last updated 2 years ago.
0
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.