How do I redirect so that I open my web page I see my chosen Html page instead of a list of files?

Status
Not open for further replies.

fossfami

New Member
Messages
17
Reaction score
0
Points
1
How do I redirect so that I open my web page I see my chosen Html page instead of a list of files?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Rename your chosen html page "index.html"
 

fossfami

New Member
Messages
17
Reaction score
0
Points
1
Maybe a better question is" how do I make it so that my main html index page shows when someone goes to my website, instead of it showing a list of my files?
 

fossfami

New Member
Messages
17
Reaction score
0
Points
1
My chosen Html page is FossIndex.html....shouldn't that work? I think it has something to do with where I have uploaded my files maybe..
 

fossfami

New Member
Messages
17
Reaction score
0
Points
1
Also, my page is not loading or looking like it should at all...it all works in and has been checked for code correctness.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
as @decalzo said above - rename [ FossIndex.html ] to [ index.html ] in folder [ public_html ]
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Thank you bdistler...but didn't answer my need.
[ Index.html ] is not the same as [ index.html ] - note the lower case " i "

FWIW - better for all file and folder names to be in all lower-case - in x10hosting's free-hosting accounts
 
Last edited:

fossfami

New Member
Messages
17
Reaction score
0
Points
1
that worked - thank you...however, my page is not displaying like it should at all. the pictures are not showing and the CSS attributes don't seem to be working properly. Any ideas? This is just when I go to my website. I have checked the html code and css code and they work perfect if I just open them in a browser from my computer.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
check the links to your "pictures" ...

what is the URL to your site ?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
YOURSITE.x10.mx/foss.css gives a 404 Not Found.
99% of the Web is *nix based.
Microsoft garbage, er products, insist on doing things their own way.
*nix is case sensitive. Windows is not.
On windows, foss.css will get you Foss.css.
On *nix it will not.
Either change your all your css links to Foss.css (as the file is named on the server) or just change the name of the file to foss.css to match the links.

EDIT/ADD: Not sure what the problem is with some of the images. Some show up, some don't. Check spelling, capitalization, and make sure they have been uploaded.
Rant #2 : No spaces in file names. No punctuation , other than . and -
 

fossfami

New Member
Messages
17
Reaction score
0
Points
1
Thanks...got it...
as far as not displaying properly, my syntax is good. All are linked to Foss.css - I will double check the rest ...thanks.
 
Status
Not open for further replies.
Top