Seo Forum

Coding & Programming => PHP Forum => Topic started by: manvbf on 10-13-2011, 02:17:58

Title: Run a file through php when an application requests it
Post by: manvbf on 10-13-2011, 02:17:58
I have a program that requests an .htm page. I wanted to make this a dynamic php page, so I added .htm extention to the list of extentions that my apache server will redirect to php. Also, this file is not in the standard document root (apache/htdocs). So, I used aliases.

But now I have a problem...the application does not request the file through my server. Because the file and the application is on the same computer, the application requests the file without ever going through my server. It's just as if I opened the .htm file while browsing my hard drive.

Is there a way to make it so that this specific file has to go through the server before anyone accesses it?