mardi 27 septembre 2016

missing last "forward slash" if have question mark in URL

In my laravel app, I have the following https url:

http://ift.tt/2doZOuy.

Whenever it has question mark ? after forward slash /, the URL will removes the / and becomes to

http://ift.tt/2czcKI3

I found similar issue here: Missing forward slash after fqdn, but my issue is with the last slash and I own the VPS server with .htaccess configuration:

htaccess:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Tested in my localhost, the slash works fine no problem. Only happens on my production VPS server.

Have tried research for few hours but no ideas what might cause an issue. Any advises would be very appreciated.

Thank you in advanced.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire