View Single Post
Old 09-30-2003, 05:14 PM  
version4
Registered User
 
Join Date: Mar 2003
Posts: 13
htaccess and SSI

I'm trying to add the below 404 code to my htaccess file so that if someone types a url that doesn't exist, they get redirected to a cgi script.

As an example, if someone types in http://www.someurl.com/beta/jdhdghsu.htm and that page didn't exist, they would go to http://www.someurl.com/beta/page.cgi?jdhdghsu.htm

I'm not having a lot of luck in getting it to work and was hoping someone could assist.

ErrorDocument 404 <!--# include virtual="http://www.someurl.com/beta/page.cgi?&&HTTP_REFERER&&"-->

Thanks
version4 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote