1.

Solve : url troubleshooting?

Answer»

Hi all,please can anyone help me,i have almost finished building my web site,(i have bought my domain name already)the problem i seem to have is that ,my web site,is placed in my/document/index.html,what i want to know is when i pay for a host and upload my web page,do i change my main index page to http://or do i leave my main index page just as it is,thanks,GillyJust leave the name index as it is because you have to it for you homepage but every thing els you can rename itthanks Chia,when you say i can rename all the other files is this really nessesary?gillyI'm not sure if this is what he means, but:

you must leave the first page that you want an internet user to see as "index.htm" (or whatever extension you have it as)
All other files that link to "index.htm" have to be recoded so that they do not go to "C:\My Documents\index.htm" but to "../index.htm".  You might know this already, but "../" means go up a level, so depending on how deep your files are stored on the domain servers, a link to your "index.htm" may look like "../../../../index.htm".

Also, I think "./index.htm" might send the browser to the topmost file, but I'm not sure, so don't trust me on it. (note, only one period)

-hope it helps
-rockNo, ./index.htm sends you to the index.htm file in the current folder.

In your links, follow this principal: '/' means the top level of your web folder.  '/index.htm' then means your home page.  In the html files, you can just call it '/index.htm' - you do not NEED to specificy the full 'http://whatever.domain.com/index.htm' - the http and domain PART are implied.

Hope this helps.I dont know as much as you robpomeroy but on most of my Sever said that the homepage must be called index but why? Cant the Internet take a different nameIt's because of defaults set on the web server.  If you just type the domain of a website, with no page (e.g. http://www.mysite.com), the web server has to decide which web page to send to the browser.  (There is no web page called ""!).  The web server typically looks through a LIST, displaying the first page it finds, eg:

index.php
index.asp
index.html
index.htm
DEFAULT.html
default.htm

If your home page does not have one of the default names, the server will not know which page to show and will instead produce a "Page not found" error.  So this is why you should choose one of the default names for your home page at least.

It's not a big problem.  The home page has got to be called something, right?Nice explaining rob  
I know it no big deal  
ThankYou can always access your server SETTINGS and tell it to look up whatever name you want  
I think it might also look for home.[whatever], maybe.Not all ISPs will allow this.  "home.htm" only works if the server has been configured that way.  In my experience, that's quite rare.  "index.html" is the standard.  "index.htm" is Microsoft's stubborn refusal to depart from the highly limiting 3 character filename extension.  "default.html" is non-standard.  "index.php" is standard, but only on servers supporting PHP.



Discussion

No Comment Found