.htaccess: re-direct php.ini to 404 error page
This commit is contained in:
@ -11,4 +11,8 @@ ErrorDocument 500 /errors/500.php
|
|||||||
#Deny access to git files (actually, return 404 errors)
|
#Deny access to git files (actually, return 404 errors)
|
||||||
RedirectMatch 404 /\\.git(/|$)
|
RedirectMatch 404 /\\.git(/|$)
|
||||||
RedirectMatch 404 /\\.gitignore$
|
RedirectMatch 404 /\\.gitignore$
|
||||||
|
#Deny access to php.ini from web
|
||||||
|
RedirectMatch 404 ^/php.ini$
|
||||||
|
#Re-direct from old blog location to the new
|
||||||
RedirectMatch 301 ^/home/(.*) /blog/$1
|
RedirectMatch 301 ^/home/(.*) /blog/$1
|
||||||
|
RedirectMatch 301 ^/home /blog/
|
||||||
|
Reference in New Issue
Block a user