Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ========================
- OLD HTACCESS
- ========================
- DirectoryIndex home.php index.php index.html index.htm
- <Files ~ "\.(gif|jpe?g|png|js|css|swf|ico)$">
- ErrorDocument 404 default
- </Files>
- ErrorDocument 401 default
- ========================
- NEW HTACCESS
- ========================
- <Files "*.php*">
- Deny from all
- </Files>
- <Files "*.pl">
- Deny from all
- </Files>
- Allow from all
- # Speed-Up [[[
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault A86400
- ExpiresByType image/x-icon A2419200
- ExpiresByType image/gif A604800
- ExpiresByType image/png A604800
- ExpiresByType image/jpeg A604800
- ExpiresByType application/x-shockwave-flash A604800
- </IfModule>
- # /Speed-Up ]]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement