500 error is probably not a redirection error
Did you apps work well with "php artisan serve"?
I should setup virtual host rather than using .htaccess
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I recentlly re-install latest apache 2.4.54 & php 8.18 on windows pc
I have old laravel web folders that work with older apache & php 7 version. but the web folder conf inside apache seems no longer working with latest version apache 2.4.54 & php 8.18
the httpd.conf for laravel web folder was as follow:
Alias /heymart "D:/www/heymart"
<Directory "D:/www/heymart">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
.htaccess inside heymart folder is as following:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
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 [L]
</IfModule>
the alias settings on other web folder inside httpd.conf seems to be working. but somehow when I go to http://localhost/heymart/ it gives the following error:
This page isn’t workinglocalhost is currently unable to handle this request.
HTTP ERROR 500
can someone help me how to fix this problem? best regards zigma
Please or to participate in this conversation.