开发者

Finding out what the page is loading in with PHP

I'm wo开发者_StackOverflowrking on a directory and on some MOD_REWRITES. I have actually deleted the .htaccess file form the site, But there is still something overwriting it.

Is there any PHP Variables that I can use to find out where the over hanging .htaccess file is being loaded from?

There are so many files, that I fear that there may even be more than one.

Cheers guys


Confusing title.

To answer your title question: do print_r($REQUEST) and find a variable you like.

To answer your body question: check each parent directory's .htaccess, until you hit the root.


.htaccess files are processed in the order they're found, so if there's one overriding things for your page, it would be in one or more of the parent directories. There's also the main server httpd.conf files, which are a preferred location for long-standing .htaccess directives, as that's read only once at server startup, and not per-request as .htaccess files are.


You can check the /etc/apache2/... configuration files, but first make sure you deleted and .htaccess is not just hidden (in unix, files starting with . are hidden by default).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜