PDA

View Full Version : PHP & .htaccess


Lights Out
02-19-2002, 01:03 PM
I need help setting up 2 things.

1.) I need to parse PHP on a .shtml page. Which of the following handlers will properly parse my PHP data on a .shtml page?

- RemoveHandler .shtml
AddType application/x-httpd-php .shtml

- AddType application/x-httpd-php .shtml

OR can I use this on my SHTML page?:

<!--#include virtual="whatever.php" -->

2.) I need to protect the visibility of my directories. For instance, you can see everything here:
http://www.lightsoutentertainment.com/media/news/

How do I modify my .htaccess file so that blind directories come up with the FORBIDDEN error?

Please respond asap! Thanks!

Damian
02-19-2002, 02:58 PM
For the directory issue, add this line in .htaccess


DirectoryOptions -indexes


D