Hello, I have some basic php questions.
I tried to call a .php file on my .html file with this code:
<?php include 'abc.php';?>
and here what I put on .htaccess:
AddType x-mapp-php4 .html .htm
AddType x-mapp-php4 .php3
it worked on my other site (on different host). Why I couldn't use that on dreamhost? should I use something like this instead?
<?php Include("abc.php"); ?>
Another question, how can I redirect the non-existing files?
Can I just use something like this on .htaccess?
ErrorDocument 402 http://www.abcdef.com/404error
ErrorDocument 404 http://www.abcdef.com/404error
Last question, how can I prevent someone to access to a specific folder (directory) other than setting up a password (i.e., by re-directing to another page)?
For example, if someone try to access directory "abc" instead of asking for username & password, he/she will be re-directed to an existing page (i.e., back to homepage)?
Thanks in advance