开发者

Reading the .htaccess DirectoryIndex and Rewrites with PHP

开发者 https://www.devze.com 2022-12-08 10:46 出处:网络
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 giv

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消