Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
jim844 is on a distinguished road
 
Posts: 1
Join Date: Feb 2009
Default how do i get rid of index of / page - 02-24-2009, 01:04 AM

i am new on web development, i have uploaded my web, but everytime i go to my webpage. it shows me the index page / then i have to click on the link to be able to view my page. so the question is how do i view my web page directly without go through index page /.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Junior Member
M45T3R is on a distinguished road
 
Posts: 1
Join Date: Feb 2009
Default 02-24-2009, 08:52 AM

what do you mean? please provide your web page. so we can see what you mean.
Reply With Quote
(#3 (permalink))
Old
Bad Karma[CORE]'s Avatar
Guilty as charged
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,133
Join Date: May 2008
Default 02-24-2009, 12:39 PM

Quote:
Originally Posted by jim844 View Post
i am new on web development, i have uploaded my web, but everytime i go to my webpage. it shows me the index page / then i have to click on the link to be able to view my page. so the question is how do i view my web page directly without go through index page /.
That is because you uploaded the files of your website to a subdirectory within the public_html directory, so the folder structure looks like this:

--public_html
---subdirectory (whatever name you gave it)
----files of your website (index.html or whatever and all the other files)

To show the contents of your page when you open your URL you need to move the files from the subdirectory to the public_html directory, so the folder structure then looks like this

--public_html
---files of your website (index.html or whatever and all the other files)
Reply With Quote
(#4 (permalink))
Old
Junior Member
DarthJonathan is on a distinguished road
 
Posts: 1
Join Date: Feb 2012
Default 02-04-2012, 01:53 AM

Guys please help i've rename my start.html into index.html , but it still say "index of /" whyy???
Reply With Quote
(#5 (permalink))
Old
Senior Member
Firebirds is on a distinguished road
 
Posts: 252
Join Date: Feb 2012
Default 02-04-2012, 02:07 AM

is index.html all lowercase?
also, did you move your files into the public_html directory?
Reply With Quote
(#6 (permalink))
Old
Junior Member
drquochoai is on a distinguished road
 
Posts: 8
Join Date: Feb 2012
Default 02-04-2012, 02:53 AM

I understand your problem.

1. LOGIN to your site's File Manager

2. EDIT the .htaccess file

3. Add this code any where in your .htaccess file
Quote:
DirectoryIndex index.php second-choice.php third-choice.html
This code make the browers know use what is default file to read if the server not point it.
Advaced, you can use any file name and file type to make it your default page (descending order of priority):
Quote:
DirectoryIndex index.html index.shtml index.php index.htm default.html Default.htm default.html Default.html default.shtml Default.shtml page1.html index.pl index.cgi index.php3 index.phtml home.htm home.html home.shtml index.wml hell.php egg.php 000.php
Reply With Quote
(#7 (permalink))
Old
tpolis's Avatar
Senior Member
tpolis is on a distinguished road
 
Posts: 154
Join Date: Aug 2011
Location: Azeroth
Send a message via ICQ to tpolis Send a message via AIM to tpolis Send a message via MSN to tpolis Send a message via Skype™ to tpolis
Default 02-05-2012, 06:40 PM

Quote:
Originally Posted by Bad Karma[CORE] View Post
That is because you uploaded the files of your website to a subdirectory within the public_html directory, so the folder structure looks like this:

--public_html
---subdirectory (whatever name you gave it)
----files of your website (index.html or whatever and all the other files)

To show the contents of your page when you open your URL you need to move the files from the subdirectory to the public_html directory, so the folder structure then looks like this

--public_html
---files of your website (index.html or whatever and all the other files)
As always Bad Karma gives the correct answers. You are the best Bad Karma. Continue your job.



http://timetakernet.info
Designed to be free and fit your entertainment needs.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com