I am currently trying to deploy my Laravel 10 site to Ionos . I already changed the .htaccess but I have a now a problem, every routes works perfectly fine except the index one . For example mysite.com/contact, or mysite.com/login displays properly my views, but mysite.com returns a 404 error.
My htaccess file :
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# Force https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTM_HOST}%{REQUEST_URI} [L,R=301]
# Force no www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
I have laravel debugbar installed, I can show you what it returns me :Laravel debugbar error code
I think it has something to do with the fact that it is try to get to mysite.com/public/public why it tries two times to access to public folder ?
What do you guys it would come from? If you need more details just tell me. And thank you for your patience