dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
<html> <head> <title>www.foo.com Redirect</title> <meta http-equiv='refresh' content='1;URL=/cgi-bin/login.cgi' > </head> </html>
I just read merlyn's column on using 404 as a cache builder. So, I tried out using 403 (cause I have indexing off) and it worked. But, I am uneasy at the fact I seem to be hacking out a solution.
Also, without hard-coding the servername, I don't see a way of getting from within the *:80 virtualhost to the *:443 virtualhost. I mean, using
would work, but doesn't it defeat the point of named virtual-hosting? (Or, am I blathering?)ErrorDocument 403 https://www.foo.com/cgi-bin/login.cgi
Another concern I have is that does this introduce any issues? I don't mind having every Forbidden query bounce to my login screen for both the :80 and :443 ports. Is there anything else?
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using 403 as a redirect
by revdiablo (Prior) on Jan 08, 2004 at 21:12 UTC | |
|
Re: Using 403 as a redirect
by bean (Monk) on Jan 09, 2004 at 00:26 UTC | |
by dragonchild (Archbishop) on Jan 09, 2004 at 02:55 UTC | |
by bean (Monk) on Jan 09, 2004 at 17:32 UTC | |
by dragonchild (Archbishop) on Jan 09, 2004 at 18:33 UTC | |
|
Re: Using 403 as a redirect
by Aristotle (Chancellor) on Jan 11, 2004 at 00:56 UTC |