Skip to content

Commit

Permalink
Create .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
devuri authored Nov 12, 2024
1 parent a0d8183 commit f391539
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# AuthName "Raydium Demo Mode"
# AuthType Basic
# AuthUserFile /srv/users/username/apps/username/_htpass/.htpasswd
# Require valid-user

<files .htaccess>
Order allow,deny
Deny from all
</files>

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# custom error messages
ErrorDocument 403 "No Access permission."

# Block WordPress xmlrpc.php
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>

Options All -Indexes
<FilesMatch "^(readme.*|license.*|composer.*|wp-config.php|README.*)$">
order allow,deny
deny from all
</FilesMatch>

<files wp-config.php>
Order allow,deny
Deny from all
</files>

0 comments on commit f391539

Please sign in to comment.