Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 11-06-2015, 07:38 AM
ttechfs's Avatar
ttechfs ttechfs is offline
Junior Member
 
Join Date: 08-06-07
Location: New York
Posts: 34
iTrader: 0 / 0%
Exclamation Multiple Index.html Files Giving Me A Problem

Hi,

I recently built a website from a sitebuilder and I extracted the files out of the website to upload to my web host but there are too many index files. There's an index file for every page. For example, contact us, about us, blog, etc. There is an index.htm file for every one of them. This isn't a problem and is at the same time. The reason that it is, is because the website linkage looks kind of ugly.

For example, if I click on the link "About Us", I get "About-us/index.htm"

NOT just website.com/about-us

Is there a way I can merge these multiple index files into one main index file or no?


Thank you!
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 11-06-2015, 08:52 AM
ConduciveMammal's Avatar
ConduciveMammal ConduciveMammal is offline
Contributing Member
 
Join Date: 03-28-13
Location: Walsall, UK
Posts: 266
iTrader: 0 / 0%
Quote:
Originally Posted by ttechfs View Post
Hi,

I recently built a website from a sitebuilder and I extracted the files out of the website to upload to my web host but there are too many index files. There's an index file for every page. For example, contact us, about us, blog, etc. There is an index.htm file for every one of them. This isn't a problem and is at the same time. The reason that it is, is because the website linkage looks kind of ugly.

For example, if I click on the link "About Us", I get "About-us/index.htm"

NOT just website.com/about-us

Is there a way I can merge these multiple index files into one main index file or no?



Thank you!
An index file is whatever you want the front page to be of that directory.
The reason you have multiple index files is because each of your pages (About Us, Contact etc...) have been made into directories (Think your documents folder with more folders inside).

All you need to do is rename all of the index files to their appropriate page name/URL e.g. yoursite.com/contact-us rather than yoursite.com/contact-us/index.html

But it's important that your main page, your home page when someone goes to yoursite.com remains named as index.html.

Your Existing Folder Structure
  • yoursite.com
    • index.html
  • Contact Us
    • index.html
  • About Us
    • index.html

Proper Folder Structure
  • yoursite.com
    • index.html
    • about-us.html
    • contact-us.html

Last edited by ConduciveMammal; 11-06-2015 at 09:01 AM. Reason: Added more info
 
Reply With Quote
  #3  
Old 11-06-2015, 09:19 AM
ttechfs's Avatar
ttechfs ttechfs is offline
Junior Member
 
Join Date: 08-06-07
Location: New York
Posts: 34
iTrader: 0 / 0%
Hey, thanks. That made a lot of clear sense. Concise answer. Appreciate it!
 
Reply With Quote
  #4  
Old 11-06-2015, 09:24 AM
ConduciveMammal's Avatar
ConduciveMammal ConduciveMammal is offline
Contributing Member
 
Join Date: 03-28-13
Location: Walsall, UK
Posts: 266
iTrader: 0 / 0%
Quote:
Originally Posted by ttechfs View Post
Hey, thanks. That made a lot of clear sense. Concise answer. Appreciate it!

No problem at all, glad I could help.

You may do well to read this: http://www.htmlquick.com/tutorials/o...g-website.html
 
Reply With Quote
  #5  
Old 11-06-2015, 10:01 PM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,703
iTrader: 5 / 100%
What site builder are you using? You might not be able to fix the problem because of the way the site builder is programmed.
 
Reply With Quote
  #6  
Old 11-06-2015, 10:44 PM
abhiup81 abhiup81 is offline
Contributing Member
 
Join Date: 11-02-15
Location: Lucknow
Posts: 148
iTrader: 0 / 0%
You can also take the help of parameters feature in Google Search Console. I fixed a similar problem by using that tool. But be careful it is highly advanced tool and improper configuration can cause devastating damage.
 
Reply With Quote
  #7  
Old 11-07-2015, 07:03 AM
ttechfs's Avatar
ttechfs ttechfs is offline
Junior Member
 
Join Date: 08-06-07
Location: New York
Posts: 34
iTrader: 0 / 0%
Quote:
Originally Posted by HTMLBasicTutor View Post
What site builder are you using? You might not be able to fix the problem because of the way the site builder is programmed.


I am using "Zyro".

Thanks!
 
Reply With Quote
  #8  
Old 11-07-2015, 11:23 AM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,703
iTrader: 5 / 100%
The Zyro site isn't much help.

So now you have to see if your web hosting will allow any changes to your .htaccess file. e.g. 301 redirect About-us/index.htm to About-us/ Plus you will have to remember to do this for any new page you create
 
Reply With Quote
  #9  
Old 11-07-2015, 01:38 PM
ttechfs's Avatar
ttechfs ttechfs is offline
Junior Member
 
Join Date: 08-06-07
Location: New York
Posts: 34
iTrader: 0 / 0%
Quote:
Originally Posted by HTMLBasicTutor View Post
The Zyro site isn't much help.

So now you have to see if your web hosting will allow any changes to your .htaccess file. e.g. 301 redirect About-us/index.htm to About-us/ Plus you will have to remember to do this for any new page you create


I can see it in the file manager. If I double click on it, it takes me a white page with "403 forbidden" on it but if I right click on it, it allows me to edit or download it.
 
Reply With Quote
  #10  
Old 11-10-2015, 04:59 PM
Dan Williamson Dan Williamson is offline
The Controversial Coder
 
Join Date: 05-01-06
Location: Manchester; UK
Posts: 2,710
iTrader: 0 / 0%
Quote:
Originally Posted by ttechfs View Post
I can see it in the file manager. If I double click on it, it takes me a white page with "403 forbidden" on it but if I right click on it, it allows me to edit or download it.
Unfortunately editing and/or downloading this is a local copy of the .htaccess file and if it's got a HTTP 403 Forbidden error message then you will need to contact the server administrator (i.e the company) to make the change for you or to give you access to .htaccess.

ConduciveMammal's approach is certainly the best, but it's very much dependent on how the company does things, to me multiple instances of an index.html makes zero logical sense as unless they're in different directories you generally can't have more than one file named the same thing unless I am misunderstanding the problem.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Sitemaps Doesn't Index Quickly - How To Get Quick Index chennaimatrimony Google Forum 10 03-15-2013 01:32 AM
Problem with page links index.html page lotusflwr Coding Forum 11 05-27-2009 07:30 PM
How to redirect index.html to index.php and keep the same positions? sniperhiga SEO Forum 7 04-23-2007 06:51 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:59 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC