Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

narendra's avatar

Laravel Route problem after deploy

Hello Friends i create a project in laravel 5.2 and deploy its one server after deploy its first page is working fine but next route not working next route give me a error 500 please help me

0 likes
3 replies
Tangente's avatar
Tangente
Best Answer
Level 9

Did you check your log file and see if there is any error? Also, it may be the issue with your URL rewrite not working (meaning your .htaccess doesn't work as it is supposed to)

narendra's avatar

When i run my project by public its show routes problem or i run project by server.php(root) its working fine but css not working

narendra's avatar

Thanx daniyum21 I changed my htaccess file and its now working

Options -MultiViews

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}]

changed RewriteRule ^ /index.php [L] to RewriteRule ^ index.php [L]

Please or to participate in this conversation.