httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "How Can ThisBe" <>
Subject [users@httpd] Pages using 'look-back' feature w. forceType and symbolic links run twice
Date Thu, 21 Nov 2002 14:42:37 GMT
My site is running on Apache/1.3.26. Since July I have been using the apache 
'look back' feature (not sure correct term for this - where it scans 
backwards down the URL if it doesn’t find what it's looking for) with a 
combination of forceType and symbolic links to allow me to use search engine 
friendly URI like

to display an image from the pics gallery, rather than say

I am using forced type in my .htaccess file
<Files pics>
	ForceType application/x-httpd-php

and making a symbolic link from pics to pics.php, then extracting the 
variable/s from the $REQUEST_URI.

This seemed to be working well. Problem is on the server side it seems to be 
processing the php page twice. In the php code I have a function to store 
user information in a database with each page load.  I have recently noticed 
that each page request to the pics section seems to be calling the php page 
twice. So for instance,

is accessing this page then running again for

Only the first page displays to the user and is logged in the access log but 
the server side page counter shows a second call to 
<> with the referer as 

Indeed if you call <> there is often a second 
or third call to itself.

There are no redirects of any kind in the php script and presumably if this 
was the culprit the page would actualy redirect. So it seems as if on the 
server side the PHP page is processing redundantly. Is this a bug, how 
'look-back' should be working or is my setup at fault.

Apologies for the long winded explanation. Any suggestions would be greatly 

The new MSN 8: advanced junk mail protection and 2 months FREE*

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message