View Full Version : web page address help


Mark-BES
02-23-2006, 08:05 AM
Hi, This may sound like a real stupid question but here goes..

I have a customer comments page on my website and want to send out a "how was our service card" to my customers with a link on it.

The web page I want them to visit for example is:
www.mywebsite.co.uk/webpage.html

I don't want my customers to have to type the entire path (including the ".html" part). I want them to type:
www.mywebsite.co.uk/webpage

In testing if I type the whole path into my browser it works, if i type the other it does not (obvious i know)!

How do you do it? I've seen eg: www.bbc.co.uk/news and that works.

Any help greatfully received, Am I missing somthing really obvious?:confused:

Sergeant
02-23-2006, 01:42 PM
The way I understand it:
If you have a doc in a folder named "index.*" or "default.*" then the web server will deliver that document given only the domain and folder names.
This address:
www.MyDomain/MyWebFolder/
...will pull this document automatically:
http://www.MyDomain/MyWebFolder/index.html

The web server must be configured for this behavior.

Mark-BES
02-23-2006, 11:44 PM
Many thanks for your reply Sergeant. Off to my ISP I go!:D

spacepro
02-24-2006, 04:12 AM
Mark,

A workaround is to upload your html file to your webspace then rename the file on the server as webpage, leaving the .html from the end of the filename.

When the browser calls http://www.mywebsite.co.uk/webpage it will then display the page.


Andy

Mark-BES
02-24-2006, 05:57 AM
Many thanks for the suggestion. Just tested in:

IE - works great!

FireFox - just displays html code. the browser does not read the code so unfortunately not a viable option given how many people now use Firefox (me included).

Thanks anyway!:)

spacepro
02-24-2006, 06:26 AM
Many thanks for the suggestion. Just tested in:

IE - works great!

FireFox - just displays html code. the browser does not read the code so unfortunately not a viable option given how many people now use Firefox (me included).

Thanks anyway!:)

Sorry Mark! Forgot about Firefox.:(

Regards
Andy

mazz2000
04-20-2006, 04:15 PM
Hi Mark

this is how the BBC does it, and me and most others

in your main directory add the folder named as you want people to type it so if you want to use www.mywebsite/feedback make a directory called feedback.
in the feedback directory add the html file called index.html, write this file as you wish.

it will load when the user calles www.mywebsite/feedback

you could have a full website in the feedback folder like the do at

www.bbc,co.uk
News
Sport
etc, each directory has the index.html or php to load the site