You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RewriteEngine On
# 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/(.+) /$1 [R=301,L]
Is there any required thing to do on vercel?
The text was updated successfully, but these errors were encountered:
anjali-251
changed the title
Api route is not working without index.php
After changing api route path it is not working after deployed on vercel
Feb 14, 2023
Bug report
I have server like "api.xxx.dev/backend/..." I have changed prefix backend to api
New path is "api.xxx.dev/api/.."
It is not working on development server getting 404 response code
but If I am using "api.xxx.dev/index.php/api/.." It is working on server
and I need to remove index.php from url
My Routeserviceprovide is
Route::middleware('api')
->prefix('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
And my .htaccess file is
Options -MultiViews -IndexesIs there any required thing to do on vercel?
The text was updated successfully, but these errors were encountered: