I have a simple route defined in routes.php on top of any route:
Route::get('/test', function () {
echo 'hello';
});
It is working when access through http but it gives:
The requested URL /test was not found on this server.
When I try to access through https.
I have searched a lot on internet but couldn’t find any solution.
My main page is loading with both http and https but other routes not working. Do I need some extra configurations?
Edit:
.htaccess:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
Please guide me.
Thanx.