
# 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
<FilesMatch "\.(?i:pdf)$">
    ForceType application/pdf
    Header set Content-Disposition inline
</FilesMatch>
# block files which needs to be hidden // in here specify .example extension of the file
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
    Order allow,deny
    Deny from all
</Files>
#Below htaccess for security in htaccess :
 
### Stop browser-viewing of all files starting with a period(.json etc).
<Files *.json>
    Order Deny,Allow
    Deny from all
</Files>
# block files which needs to be hidden //
<FilesMatch "^\.">
    Order allow,deny
    Deny from all
</FilesMatch>
 
# in here specify full file name sperator '|'
<Files ~ "(artisan|wp-config.php|app.php|xmlrpc.php|env.php)$">
    Order allow,deny
    Deny from all
</Files>
    
