I am trying to do something very simple. My web dir structure:
login (a ruby script)
I have a form/button in index.html, and when submitted the action is to
cgi-bin/login. I have the necessary #! header etc.
I want the login script to return the same index.html file (except for
minor substitution), but it should appear to the client browser to come
home/ so that relative links will continue to work, rather than from
cgi-bin. The following almost works, except it is based out of cgi-bin.
print “Content-type: text/html\n\n”
home_page = IO.read “…/index.html”
Any simple solution?