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

DunogRamers's avatar

deploy lumen app with htaccess

I want to deploy my lumen app on an webserver. I get following error

"The server encountered an internal error due to .htaccess misconfiguration. Please check your .htaccess file within this or upper directories for syntax errors."

I checked my permissions and they are all set to 777.

My .htaccess file:

Options -MultiViews

RewriteEngine On

Redirect Trailing Slashes...

RewriteRule ^(.*)/$ /$1 [L,R=301]

Handle Front Controller...

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ mobile-app/index.php [L] What https://chatrandom.download am I doing wrong?

0 likes
1 reply
illuminatixs's avatar

My personal step 1 for htaccess issues is using this website: madewithlove it will quickly detect common made mistakes, and you can actually see in realtime what your configuration is doing to the url you're trying to access.

Please or to participate in this conversation.