Reading the .htaccess DirectoryIndex and Rewrites with PHP
Is there an inbuilt way to read the active DirectoryIndex in .htaccess (or httpd.conf etc) with php?
Al开发者_如何转开发so, is there a way to determine which file the httpd will execute using PHP given a url if rewrites are being used?
Basically, given a URL, I want to use PHP to figure out which file the httpd would initially invoke.
Thank you.
The easist way I can think of is to use curl and make the real URL request to see what page it gives you back.
That way there is no guessing, you will know for a fact what page it gives you back.
See apache_lookup_uri()
function.
精彩评论