RE: [PHP] URL w/o script name
| From: | Jason Lotito | Date: | Mon, 09 Apr 2001 15:28:03 +0000 |
| Subject: | RE: [PHP] URL w/o script name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47765@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: mailing_list@gmx.at [mailto:mailing_list@gmx.at]
> Sent: Monday, April 09, 2001 4:50 AM
> To: elias
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] URL w/o script name
> >
> > and sometimes i see:
> >
> > www.site.com/?asdasdf=adasd
> >
> > can someone please explain me this process.
>
> the server looks in its configuration (for example Apache: DirectoryIndex
> index.php) and returns this page - with the GET-Varaibales as well (your
> Browser doesn't have to know, what this page's name is!)
>
> But I'm sure you can configure your webserver (or put it in your
> script) to
> make a 301/2/3 and redirect to the full URL!
>
> witty
Just to point out, the /?asdf=asdf style is poor in my opinion, more so
because I have experienced errors (well, visitors have experienced errors)
with links that were linked like that. I believe it was a Lynx user, or
maybe Opera, don't remember. However, the fact is that I suggest actually
putting the script name in there. =)
Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.