Skip to content

Commit

Permalink
Do not allow to open app at /public/
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-helpdesk committed Jul 13, 2019
1 parent 999f2ab commit d477b34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .htaccess
Expand Up @@ -2,5 +2,8 @@
# so we rewrite all web requests into /public folder
<IfModule mod_rewrite.c>
RewriteEngine on
# On some hostings it does not work as "public/$1", but works as "/public/$1".
# But we can't write it as "/public/$1" because in this case it does not work
# when application is installed in subdirectory.
RewriteRule (.*) public/$1 [L]
</IfModule>

0 comments on commit d477b34

Please sign in to comment.