Forum Moderators: phranque

Message Too Old, No Replies

Splash Page

Cookie based rewrite in Apache 2

         

Col_K

7:27 pm on Feb 23, 2004 (gmt 0)

10+ Year Member



For one of my sites, I need to provide a "Splash" page, which is displayed when the user first reads any page off of the site. I am using Apache 2.0.47 on a Solaris 9 box. I have the following in my httpd.conf:

RewriteEngine on

RewriteCond %{HTTP_COOKIE}!^.*CookieName.*$
RewriteRule ^.*$ /_splash/setcookie.cgi

Where the setcookie script simply sets the cookie with an expiry date of 20 min hence.

I am at a loss to see why this does not work, anyone have an idea?

Col_K

6:41 pm on Feb 26, 2004 (gmt 0)

10+ Year Member



I have now worked out my problem, just in case anyone was interested. It appears that the apache (2.0.47) control program does not work as advertised.

apachectl -k graceful
apachectl -k restart

both restart the server but do not force it to re-read the control file. Thus it was not reading my rewrite commands.