Question:
www.myname.com/hello with no .html after hello How does this work?
Al
2008-01-24 17:46:18 UTC
I have seen web pages like www.myname.com/hello for example with no .html after hello. How does this work? Is it a code you put in you web page or php or something else?
Ten answers:
anonymous
2008-01-24 17:52:30 UTC
This means there is a directory/folder on the root of the website called hello which will contain a file such as index.html as it's default file.



Hope this helps!



Regards,



Cam.



www.cam-web.co.uk
eskwayrd
2008-01-25 02:35:12 UTC
In a URL, everything after the hostname is a resource specification. You're basically asking the web server at 'www.myname.com' for the resource called 'hello'.



The definition of resource depends on your webserver configuration, and can be influenced by your OS.



'hello' could be a file, or a directory, or invocation of code that provides output related to 'hello'.



Using filename extensions such as '.html' or '.htm', etc. are used to provide a hint at the type of content to expect when you request a resource with that extension. Typically, 'hello.html' would be a file somewhere that your web browser can locate/read whereupon it will send that file to you. But, 'hello.html' could still be a directory or code that produces the appropriate output.



It's not generally possible to determine how the resource is implemented without having access to the web server and its configuration, but then, you don't normally need to care about that as a user of the resource.
anonymous
2014-10-11 10:27:22 UTC
Www.myname.com/hello with no .html after hello How does this work?



I have seen web pages like www.myname.com/hello for example with no .html after hello. How does this work? Is it a code you put in you web page or php or something else?
anonymous
2008-01-25 01:52:47 UTC
hello is the actual page name. It will have an htm or html on the actual web server but you don't have to type it in on the address bar because the browser already assumes that. The only time you would have to specify is if you had both the html and htm versions of that page on the server and had to differentiate between them but that wouldn't generally be a good idea.
josh.weissbock
2008-01-25 02:19:37 UTC
Create a directory in the public_html folder and call it "hello". In there create an index.html/htm/php and when typing in said URL it will automtically go to this page.
LTlearner
2008-01-25 02:04:28 UTC
I believe some web servers offer different ways of mapping page requests to certain file extensions.

Check out the following links:

http://www.websiteoptimization.com/speed/tweak/rewrite/

http://msmvps.com/blogs/omar/archive/2007/04/29/serve-extensionless-url-from-asp-net-without-using-isapi-module-or-iis-6-wildcard-mapping.aspx
p_rutherford2003
2008-01-25 01:48:52 UTC
You can name the page whatever you like, by default most http addresses open the index.html or whatever file is there, with or without the html extension.
anonymous
2008-01-25 01:50:27 UTC
the /hello points to another folder probably. in the hello folder, put a default.html page (or index.html). you can also hide this using setting in the IIS.
anonymous
2008-01-25 02:08:04 UTC
hello is a directory (which means folder) and inside the folder, if you have a file called index.html (or index.php...), it will display that file by default.



If the server is configured, though.
anonymous
2014-06-19 06:45:29 UTC
problematic stuff research at google or bing just that might help


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...