Removing .html extensions by adding pages to directory, is this bad?

Discussion in 'HTML & Website Design' started by James Ross, Jan 11, 2010.

  1. #1
    Hi Guys.

    I'm wanting my sites to look like this:

    www.domain.com/subpage

    instead of:

    www.domain.com/subpage.html

    My hosting is godaddy shared on windows so no apache. D: The only solution I found was to create a folder in the root directory called "subpage" and add subpage.html into it. I have to change the name of subpage.html to index.html

    Is there an easier way to fix this without a mod rewrite or this method?

    Also, is this bad for SEO?

    Thanks!
     
    James Ross, Jan 11, 2010 IP
  2. GledisK

    GledisK Well-Known Member

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    113
    #2
    I think this would be a bad think for your webpage and SEO! or you use that folder "subpage" and inside put index.html = subpage.html!
     
    GledisK, Jan 11, 2010 IP
  3. arandhawa

    arandhawa Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    make it a 301 redirect. just make sure when people redirect they go to the link you want them to go to, not the .html
     
    arandhawa, Jan 11, 2010 IP
  4. yesmate

    yesmate Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    there is an easy fix for this :)

    ALl you have to do is create folders in your root directory and name them whatever you want your page to be (ie. gallery) Then save your gallery page inside the gallery folder but name is index.html. This way it will display as yoursite.com/gallery no more .html
     
    yesmate, Jan 12, 2010 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yesmate, that's not a bad idea but it DOES assume that there's already a redirect going on for index.html set up on the server.

    If it is, then yes that would work. But if not, then the OP still needs to set something up with godaddy.
     
    Stomme poes, Jan 13, 2010 IP
  6. iTunes

    iTunes Member

    Messages:
    447
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #6
    Like you said, put it to domain.com/subpage and have subpage as index.html
    it can effect your SEO though, as your page site may not be scanned through if you have too many directories.

    Regards,
    Discuss-BB.org
     
    iTunes, Jan 13, 2010 IP
  7. yesmate

    yesmate Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Why would having too many sub directories affect your SEO?
     
    yesmate, Jan 13, 2010 IP
  8. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Since most folks are doing this for all their images and their css files, rss files, etc, I would think the effect it minimal at worst.
     
    Stomme poes, Jan 14, 2010 IP
  9. bazyv2

    bazyv2 Active Member

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    63
    #9
    This is the best option. And it can not affect your SEO. This is recommended for SEO. lol Use alot of <h1> <h2> <h3> tags btw .
     
    bazyv2, Jan 14, 2010 IP