Support the ongoing development of Laravel.io →
Configuration Requests
Last updated 2 years ago.
0

Maybe posting your .htaccess can help figure out the redirect. There has to be a rule causing the redirect.

Last updated 2 years ago.
0

Well, I was able to fix the main issue by modifying the line that deals with the index.php. Here's my version:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>
    Options +FollowSymlinks
    RewriteEngine On
   RewriteBase /my-project/
    # Redirect Trailing Slashes...
   RewriteRule ^(.*)/$ /$1 [L,R=301]


    # Handle Front Controller...
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php/$1 
</IfModule>

However, trailing slashes now cause a redirection to "not-my-domain.com/(URL)" if they are appended to any URL except the base URL.

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.

© 2024 Laravel.io - All rights reserved.