Forum Moderators: phranque

Message Too Old, No Replies

2 Webmaster Questions?

How to...How do I?

         

anthonyon

7:11 pm on Dec 19, 2004 (gmt 0)

10+ Year Member



My two webmaster questions are::

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.

benevolent001

7:15 pm on Dec 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello
Welcome
Answer to both your questions is pretty simple

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]

encyclo

7:24 pm on Dec 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], anthonyon.

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.

anthonyon

7:57 pm on Dec 19, 2004 (gmt 0)

10+ Year Member



Thanks for the insight. That explains alot. I should be able to find out more of what I need to do from this information. But anyone who wish to share your knowledge, please feel free to do so. Thanks.

rubenski

11:05 pm on Dec 19, 2004 (gmt 0)

10+ Year Member



[google.com...] could also simply be a URL pointing to the /adwords/ directory. Once there Apache (or any other web server) will search for the default file, which is usually index.html or index.php, but it is not shown in the address bar.