Forum Moderators: phranque
1. How do you create a webpage without having the extension in the address bar? (e.g. [google.com...] You see after adwords there is not a .htm; .html; .php; .cgi;...nothing is there, no extension. How can you do this? I'm assuming it has to do with MySQL fetching the html page and viewing it from a folder or database. I'm just taking hunches but can someone please ellaborate. Share your knowledge. Thanks.
2. How do you create a webpage that has a browser that looks like this [domain.yoursite.com...] You see how there is a name before yoursite.com. How is this accomplished? Again please share you knowledge. Thank you.
Subdomain
In the both cases there ar two subdomain
adwords.google.com
and
domain.mywebsite.com
The part of name before the main name of the website is known as subdomain,you can create subdomains in the control panel for your hosting service,and place your files in the folder for the subdomin
Hope this helps
[edited by: benevolent001 at 7:25 pm (utc) on Dec. 19, 2004]
There are many ways of having an URL without a file extension. The first is when using content negotiation, where you simply specify the filename without the extension and the server issues the appropriate file according to predetermined criteria. The second is a mask for a dynamic URL, usually with the Apache module mod_rewrite. For example, an URL string:
example.com/index.php?page=widgets can be mapped to:
example.com/widgets The third case is when there is a trailing slash at the end, such as:
example.com/widgets/ In which case, it is merely a directory.
For your second question, an URL such as
widgets.example.com is a subdomain. In order to create one, you might find an option in your hosting company's control panel, otherwise contact them for precise instructions. A subdomain is treated as a completely separate site to the main site by tools and search engines.