I have been using Apache 1.3 for years and there has been no flaw in how the rewrite rules were interpreted and argumants passed to my PHP programs. However, I am now having difficulty when using these same rules and the same PHP programs.
I have used the rewriteLog and RewriteLogLevel directives to get the output of the engine to try and debug the problem. It appears that the ReWrite is doing everything as expected, however when the PHP program runs, the arguments that are supposed to be passed are not being interpreted. My install info: RH9 httpd-2.0.40-21 (Stock) php-4.2.2-17 (Stock) Sample URL: http://somewhere.org/channel/b.4.r.5.html It also FAILS if I just pass the following (which is what the Rewrite engine is supposed to create): http://somewhere.org/content.html?rq_category=&rq_behavior=4&c_regard=5 Here is the log output from the ReWrite Engine: 1: (2) init rewrite engine with requested uri /channel/b.4.r.5.html 2: (3) applying pattern '^/channel(.*)/b\.(.*)\.r\.(.*)\.html' to uri '/channel/b.4.r.5.html' 3: (2) rewrite /channel/b.4.r.5.html -> /content.html?rq_category=&rq_behavior=4&c_regard=5 4: (3) split uri=/content.html?rq_category=&rq_behavior=4&c_regard=5 -> uri=/content.html, args=rq_category=&rq_behavior=4&c_regard=5 5: (2) remember /content.html to have MIME-type 'application/x-httpd-php' 6: (2) local path result: /content.html 7: (2) prefixed with document_root to /var/www/html/content.html 8: (1) go-ahead with /var/www/html/content.html [OK] Here is the test page I had used to test the problem: <HTML> <BODY> <?php echo "RQ_CATEGORY= $rq_category<BR>RQ_BEHAVIOR = $rq_behavior<BR>C_REGARD = $c_regard<BR>\n"; ?> </BODY> </HTML> The other PHP code seems to execute OK, but to retrieve the correct records out of the database, these variables have to be set as a part of the original URL. I know that the problem is with the APACHE engine since the PHP code is being interpretted - its the arguments that are being passed that are not being set in the script... Should I be using the HTTP_GET_VARS[] or is there a parameter that is keeping these values from being read properly? Thanks for help in advance, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php