Skip to content

Instantly share code, notes, and snippets.

View FlatspinZA's full-sized avatar

Darrell MacLennan FlatspinZA

  • Ashford, Kent, United Kingdom
View GitHub Profile
@Zodiac1978
Zodiac1978 / .htaccess
Last active January 27, 2024 14:06
Safer WordPress with these .htaccess additions
# Don't show errors which contain full path diclosure (FPD)
# Use that line only if PHP is installed as a module and not per CGI
# try using a php.ini in that case.
# Change mod_php5.c to mod_php7.c if you are running PHP7
<IfModule mod_php5.c>
php_flag display_errors Off
</IfModule>
# Don't list directories
<IfModule mod_autoindex.c>