[USER BANNED, MESSAGE REMOVED]
Moderator note: To keep this information available, the original post can be rephrased as asking how a page can have a custom extensinon, not .htm, etc.
Printable View
[USER BANNED, MESSAGE REMOVED]
Moderator note: To keep this information available, the original post can be rephrased as asking how a page can have a custom extensinon, not .htm, etc.
Probably just a server configuration.
(shudder) MySpace.Quote:
yeaaa oops i by askident delete ur comment geeze dis thing is confusin me .. eheh lol but yea i was wonderin how u change my url thingy. and i posted a bullentin on ymspace tlelin peepo to join dis site =D do i get ne credit for it =D lol
Yeah, servers can be configured to use any file extension. It doesn't matter.
Well, an easy way, assuming that the dot character is legal for use in directory names - I think it is, would be to make a directory called Index.love and have an index file in it. It could even be a (shudder) frameset.
Look at php.net for example. All of their pages are some sort of extension.
Example:
http://ca.php.net/manual/en/ref.ftp
Actually, it's because when an error is parsed with php it will display the error and have a link. The spaces in the title of the error are replaced with ".", so the link will go straight to the ref.
So.. how can Google get away without the file extensions?
eg. http://www.google.com.au/search?q=hello
.htaccess. I found a tutorial a while back on how to do this, but I had no real use for it and forgot what the url was.
I repeat, the request URI passed to the server needn't be the path to an actual file. It can be whatever the server wants it to be. For example, in Django, there's an urls.py file which contains a list of regexes and functions (all in one file, views.py) to associate with them. When the regex is matched in a request URI, the function is called with the regex's captures as arguments, and the result of the function is displayed to the browser.
No, you're looking it in completely the wrong way.
When a request is sent to the server, the URI line looks something like this:That "/path/to/file.html" is just a string. It's entirely up to the webserver what to do with it. It may decide to use that to look for a file called file.php on the server's hard drive, or it may do something totally different; it might, for example, connect to a remote site and download some data from there, or run a script, or contact a device (a webcam or some such thing).Code:GET /path/to/file.html HTTP/1.1
The browser's address bar shows the URL of the current location. Unless a redirect status code is returned, that doesn't change. The real data, though, can come from anywhere: there's no guarantee that the URL reflects the layout of the server's hard drive, or even that the webserver is reading from the hard drive at all.