Skip to content

404 when running on apache #111

Answered by SimonFrings
sebiko3 asked this question in Q&A
Jan 29, 2022 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @p13rnd, thanks for bringing this up 👍

Running your code on apache needs some additional setup which is not necessary when working with the built-in webserver. One difference is to adjust your .htaccess file when using apache. You can read all about this in our documentation. The .htaccess file looks something like this:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php

There is no requirement to add a public dir, but we always recommend doing it. In our cases the public folder functions as our document root. Only files, where it's not critical if other people can access them, should be in there, for example if you have…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sebiko3
Comment options

@SimonFrings
Comment options

Answer selected by sebiko3
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #110 on January 31, 2022 11:13.