开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜