Jump to content

Htaccess Directive Help Please


geomagnet

Recommended Posts

This is my htaccess fileAddHandler headered .htmlAction headered /iptoc.phpAll it does is identify requests for .html files and route them through iptoc.php which processes the request before displaying the page.-FYI it check the remote address against blacklisted IP's and block or allows the file to display.Works fine, but...every directory below the top directory where iptoc.php resides attempts to process .html files as well. This would not be a problembut the path is relative to the directory not the root. So when htaccess processes the directive it looks for iptoc.php in the current directorynot the root (as expected) causing it to fail (because the iptoc.php is not in the current directory).The question is: How do I get the directive to operate as an absolute path and not relative. Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...