Make index.html default, but allow index.php to be visited if typed in
snippet in htaccess

Make index.html default, but allow index.php to be visited if typed in

user7892

DirectoryIndex index.html index.htm default.htm index.php index.php3 index.phtml index.php5 index.shtml mwindex.phtml

Make index.html default, but allow index.php to be visited if typed in

user9775

remove_filter('template_redirect', 'redirect_canonical');