Basically my site has 2 pages (that the user should be able to view:
index.html and content.php
content.php should NOT be accessable unless it has been accessed though index.html (i.e. I don't want to be able to access content.php, or any other .php file, through the URL)
with that said, index.html and content.php use a lot of .php scripts so if I "deny all" nothing seems to work at all.
Could anyone help with the syntax (preferably .htaccess) to accomplish this.
Currently my .htaccess file has: (in the php folder)
however it doesn't work unless I put it directly in the .confg file.
thanks
atsea
index.html and content.php
content.php should NOT be accessable unless it has been accessed though index.html (i.e. I don't want to be able to access content.php, or any other .php file, through the URL)
with that said, index.html and content.php use a lot of .php scripts so if I "deny all" nothing seems to work at all.
Could anyone help with the syntax (preferably .htaccess) to accomplish this.
Currently my .htaccess file has: (in the php folder)
Code:
#deny all access
deny from all
#Hide file index
IndexIgnore *.php
however it doesn't work unless I put it directly in the .confg file.
thanks
atsea