Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How does one go about doing this? I see places such as perlmonks that simply have the question mark (?) after the domain name. How do you accomplish this?

Replies are listed 'Best First'.
Re: Hiding cgi script name?
by cowboy (Friar) on Mar 18, 2005 at 04:56 UTC
Re: Hiding cgi script name?
by brian_d_foy (Abbot) on Mar 18, 2005 at 05:12 UTC

    URIs don't necessarily map onto file names. You can set your web server to do just about anything given a certain URI. You might have a script run for just about anything, and there are several ways that you can make this happen, such as URI rewriting, default file names, mod_perl handlers, and so on.

    Along with that, you can add a query string (that stuff after the ?) to any HTTP URI. It doesn't matter if it's a script or regular file.

    How you actually set it up depends on your webserver, and isn't anything to do with Perl.

    --
    brian d foy <bdfoy@cpan.org>
Re: Hiding cgi script name?
by merlyn (Sage) on Mar 18, 2005 at 05:56 UTC