Making an index.html file?

Hi-
I just put up a personal web page which I am developing with Mozilla Composer. I think I may have deleted an index.html file by accident. I can get the site to come up with < gnustories.org/gnustories.html > (gnustories.html being the central file for the site that I created on MC.) I think it should come up as just gnustories.org. (This is what I pointed my domain to.) As I understand it, browsers will first check for a index.html file which tells them where to go from there. So would it be possible for me to just create such a file and have it point to the gnustories.html file. That, it seems to me, would let me use just gnustories.org for the web address. Is there a model, or a tutorial for this?

jedson

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Making an index.html file?

Check this page for MANY ways to redirect the user to another page:
http://www.somacon.com/p145.php

"Redirection with Javascript"
and
"Redirection with META Refresh"

are the only ones that will work on all webservers. The other ones (while better) require some server side apps to be installed.

Making an index.html file?

"As I understand it, browsers will first check for a index.html file which tells them where to go from there."

this is actually determined by the webserver - the server looks for a suitable file, usually an index.htm or similar. if you have access to the server, you are able to set the default page as "gnustories.html", although surely it is much simpler to rename this to "index.html"?

can you tell us what webserver you are using, and what level of access to it you have (admin?)

Index file

I have an account with 1&1.org. I am listed as the regrstrant, administrator and the technitian for the domain.

I had not even thought about just calling my main page "index.html." I'll try this to see what happens, and check out the account that links to the information about all this.

Will let you know what happens.
Jedson

Index file

OK. I changed the name of the main web-page to index.html. I put this in the folder "gnustories" which is one of the two folders I created at the root folder to handle my two domains. I had already pointed the gnustories.org domain at this folder in the 1&1.com control center. To me that means that if I simply type "gnustories.org" into any browser it should go directly to the gnustories folder. Here is what I find: if I type in "gnustories.org" I get an error 403 -- that I don't have permission. If I type in "gnustories.org/gnustories the site pops up. I know that it is reading from the index.html file, because I deleted all other files that had the page info. So changing the name makes it work fine if the browser goes to the right folder. Somehow the re-direct that I tried to do in the 1&1 control panel must not be working. So should I contact the tech people at 1&1? Or is there something I am not seeing?

Index file

what redirects are in place?
one thing which can cause a 403 error is incorrect file-system permissions on a file (so we need to know which page is the serving is trying to display as the main page)
there are other reasons i know of as well, but I cannot tell if they would apply here.

the problem doesn't sound too difficult, but contacting the tech people would probably be faster than solving it yourself.

index.html

Quote:
contacting the tech people would probably be faster than solving it yourself.

Thats probably right, but I learn more coming here. Basically all I had to do was name my main file "index.html." It didn't work right off because a change I made in the 1&1 program took longer than they said to become effective. So problem solved and thanks for the help.

jedson

Syndicate content