Jump to content

PHP processing files without extension


jona2402

Recommended Posts

New to PHP...

Using Apache 2.2.6

Have xhtml files with .html extension. These are mentioned in the vhost .conf file with no extension to use a specific function in a specific module. The module maps the file name to the actual file, reads it, searches for a specific node, processes the contents of the node and replaces the node with the results of its processing. eg, a request for "gallery" is received and the gallery.html file is processed.

When I load mod_php, all these requests cease to be processed and an empty document is returned. Is there a way to force PHP to only process files with a .php/.phtml extension and to leave the other files (specifically those with no extension) alone?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.