Why should you care? Because
(which requires you to provide a redirect cgi handler on your server.)
Examine the source code for this page to see how it is done
#!/bin/sh read line newloc=`echo $line|sed 's/^redirect=//'` if [ "$newloc" == "" ] ; then echo "Content-type: text/plain" echo "" echo "ERROR: you didnt pick a new document" exit 0 fi echo "Location: $newloc"Unfortunately, the above isn't exactly as secure as it could be. Hopefully, it will give you the idea, though.
I suggest using the following construct instead:
Side note: the most efficient way to do a redirect is at the http conf file
level, if you have access. For example, if you want to redirect ALL http
traffic to the top level of your https site, you can drop the following
Redirect permanent / https://your.server.com
Here is the source to the above seemingly short line.
If you have any suggestions, comments, etc;
drop me a line!