Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@
#
# Restrict access to DotFiles (like .htaccess, .env, .gitignore....)
<FilesMatch "^\.">
Order allow,deny
Deny from all
Require all denied
</FilesMatch>

# Restrict access to system files
<FilesMatch "^(composer.json|composer.lock|artisan|code_of_conduct.md|gulpfile.js|package.json|error_log|phpspec.yml|example.env)">
Order allow,deny
Deny from all
Require all denied
</FilesMatch>

# Uncomment to restrict access to release text files
#<FilesMatch "^(LICENSE|README.md|readme.txt|release-notes.txt)">
# Order allow,deny
# Deny from all
# Require all denied
#</FilesMatch>

16 changes: 6 additions & 10 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,19 @@

# Restrict access to DotFiles (like .htaccess, .env, .gitignore....)
<FilesMatch "^\.">
Order allow,deny
Deny from all
Require all denied
</FilesMatch>

# Restrict access to system files
<FilesMatch "^(composer.json|composer.lock|artisan|code_of_conduct.md|gulpfile.js|package.json|error_log|phpspec.yml|example.env)">
Order allow,deny
Deny from all
Require all denied
</FilesMatch>

# Uncomment to restrict access to release text files
#<FilesMatch "^(LICENSE|README.md|readme.txt|release-notes.txt)">
# Order allow,deny
# Deny from all
# Require all denied
#</FilesMatch>


#custom
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Uncomment to redirect www subdomain to naked domain
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]