|
-
Nov 28th, 2004, 01:03 AM
#1
Thread Starter
Lively Member
Funneling Apache requests into a PHP script
I wish to funnel all apache requests to a directory into a single PHP file. I am currently acheving the desired result through the ErrorDocument directive placed in a .htaccess file. However, this does not allow search engine spiders and other services (like the W3C Validator) to read the pages, since it detects the 404 response header and aborts.
What I am trying to do is get all URLs of the format
http://www.domain.com/some/non/exist...th=querystring
to be handled by the 'index.php', which is already set up to take the address above and determine which page to build from the data and templates stored in the database.
Basically, I want it to work like the 404 error handler method, but without the automatic 404 header being sent to the client
Please advise on how I can achieve this without the use of mod_rewrite, since my server doesn't support it (I tried using it with some basic proven examples, and all I got were 500 Internal Server errors, so I assume its not installed)
Thanks in advance
Last edited by ALundrigan; Nov 28th, 2004 at 01:07 AM.
- Adam Lundrigan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|