Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add .htaccess in project root #7676

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/deploy-appstarter
Expand Up @@ -20,7 +20,7 @@ git checkout master
rm -rf *

# Copy common files
releasable='app public writable env LICENSE spark preload.php'
releasable='app public writable env LICENSE spark preload.php .htaccess'
for fff in $releasable;
do
cp -Rf ${SOURCE}/$fff ./
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/deploy-framework
Expand Up @@ -20,7 +20,7 @@ git checkout master
rm -rf *

# Copy common files
releasable='app public writable env LICENSE spark system preload.php'
releasable='app public writable env LICENSE spark system preload.php .htaccess'
for fff in $releasable;
do
cp -Rf ${SOURCE}/$fff ./
Expand Down
13 changes: 13 additions & 0 deletions .htaccess
@@ -0,0 +1,13 @@
# It is recommended that the "public" folder be pointed as the document root.
# However, this file will work (but not perfect) if you have no other choice
# but to place your CI4 project folder in the document root on a shared server.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

<FilesMatch "^\.">
Require all denied
Satisfy All
</FilesMatch>