i read a blog/article on how to do this. it defiantly seems like it would work, but it wont. and i would use mod rewrite for this part, except i dont want ppl to access index.php, but instead index.html. i have tried that, itr works, but i also wanted it to give a 404 error on the php ext. so i tried using php code like
if(ereg(".php",$_SERVER['PHP_SELF'])== true){
header("HTTP/1.0 404 Not Found");
include "THE 404 PAGE";
}
else{
//other code
}
of course since mod rewrite only hides the address, but still sends the same http request header, that wont work.
so i am not sure what to do.