title: Reading the .htaccess DirectoryIndex and Rewrites with PHP
body: <p>Is there an inbuilt way to read the active DirectoryIndex in .htaccess (or httpd.conf etc) with php?</p>
  
  <p>Also, is there a way to determine which file the httpd will execute using PHP given a url if rewrites are being used?</p>
  
  <p>Basically, given a URL, I want to use PHP to figure out which file the httpd would initially invoke.</p>
  
  <p>Thank you.</p>