PDA

View Full Version : .htaccess not passing ANY referrer


amartinas
12-29-2006, 07:20 PM
i set up my .htaccess file to catch errors.. pretty simple stuff. however, when the person is directed to the errorpage (written in PHP), there is never a referrer.

right out the gate, please do not suggest that they are blocking the referrer. i NEVER get a referrer to my PHP error page regardless of what i do, and ive tested extensively.

what i expect is that when a visitor goes to a bad url on my site, the htaccess page redirects them to my error page, but somehow strips the referrer. again, i think this becuase i NEVER get a referrer, and many different people visit my site.

what id LIKE to do is to pass the referrer as a GET variable to the path to my PHP error page... but i dont know how to code that in...

any ideas? looking for someone that can help me with my htaccess document to get a reference to the referrer (when there is one)

ntdoc
01-18-2007, 12:03 AM
It could be due to your hosting provider setup. Maybe they have a configuration issue. On Gentoo w/Apache 1.3 I have some issues with .htaccess not working properly either but it's beyond my control because I don't have Admin access to modify stuff for the server.