Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: CGI index as text

by nedals (Deacon)
on Nov 24, 2004 at 06:47 UTC ( [id://410064]=note: print w/replies, xml ) Need Help??


in reply to CGI index as text

If, for one reason or another, that will not work, you could 'brute force' using a blank index.html with
<meta http-equiv="refresh" content="1;URL=/cgi-bin/index.cgi">
as a last resort!

Replies are listed 'Best First'.
Re^2: CGI index as text
by tachyon (Chancellor) on Nov 24, 2004 at 07:08 UTC

    This is *extremely* unlikely to work. With a GET request and this redirect you will lose the QUERY_STRING. With POST it is even worse as it will almost certainly generate a 405 Method Not Allowed as you try to POST data to an HTML page.

    cheers

    tachyon

      The OP made this statement...
      The main index page is a CGI file, how can I get it to load?

      I understood this to mean that when initially accessing the site, the index page is a cgi script that needs to be accessed. There will be 'NO' QUERY_STRING or POST. This simply redirects the normal index page to the CGI script without the use of .htaccess (I also believe the .htaccess method is a better way to do it.)

      Please explain *extremely* unlikely to work

        Please explain *extremely* unlikely to work

        I did. Dynamic sites almost inevitably GET/POST back to their root - take PM for example. PS content="0;url...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://410064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-24 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found