English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Whwnever we open a site the default opening page will be index.htm or index.html. I want whenever i open a site like www.mydomain.com instead of opening index.html it will open home.html or any other which i would like to make default. How can i do thid

2006-06-28 19:44:25 · 3 answers · asked by AshishBatra 5 in Computers & Internet Programming & Design

3 answers

I think it depends on your domain providor. But If you can't change it, you may have to find a little bit of javascript to autodirect your index.html to your home.html. That's what I had to do with a very old website of mine ages ago.... Here is the code:





I hope this works for you.

BTW: When I previewed this post the url in the code has ";..." you only need the URL in quotes ( " ) and the semicolon ( ; ) at the end of it.

2006-06-28 19:54:29 · answer #1 · answered by Jenna 2 · 2 0

If you type a web address in the browser address bar with the complete name of the page you want to open then that page will open.
For example if you type"www.mydomain.com/page3.html" then page three of that site will open. Note the browser will automatically put in "http://" for you, after you hit enter.
This will only work if the website allows it, some sites may require you to join or log in first.
If you just type "www.mydomain.com" and hit enter the browser will automatically put in the http:// and will automatically and only search for the index.html page. That is the way it is programed and there is nothing WE as users can change about it.
You can, when your on the page you want to open later Save it to favorites. the next time you use your computer go to favorites and when you click on it you may get taken directly to the page you want. As I said before, some sites don't allow that because you have to sign in or their front page contains the advertising thay want you to see.

2006-06-28 20:06:11 · answer #2 · answered by space_man_stitch 6 · 0 0

If it's your domain to control, you can also go into the control panel of your domain and when it asks what site your masking the URL to, type in www.whatever.com/home.html and then when you type in your domain name, it'll go to the page you specified.

2006-06-29 05:27:28 · answer #3 · answered by Kayla 2 · 0 0

fedest.com, questions and answers