Re: URL w/o script name

From: Date: Mon, 09 Apr 2001 11:49:58 +0000
Subject: Re: URL w/o script name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47760@lists.php.net to get a copy of this message
> Hello. > > I have no idea in Linux systems yet nor in Web Servers configurations and > stuff, and now I wonder: > > www.php.net/asdfadasdasd > > who takes control if i didn't specify a script name in the url? the web-server if you access www.php.net/asdfadasdasd (and the directory DOES exist) the web-server returns: 301 Moved Permanently http://www.php.net/asdfadasdasd/ then the Web-Server gets the request "http://www.php.net/asdfadasdasd/" from the Browser Now the server looks in its configuration (for example Apache: DirectoryIndex index.php) > does it work on windows PWS ? I don't even want to try it ;-) > > 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 -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net

« previous php.general (#47760) next »