HTML pages with no extension

Discussion in 'HTML & Website Design' started by mads, Jan 15, 2008.

  1. #1
    mads, Jan 15, 2008 IP
  2. HiredAtHome

    HiredAtHome Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This can be done a couple of ways:

    1) Mod-Rewrite/.htaccess
    2) Create a directory for each page, and upload the default file for your server in each directory (usually index.html/htm/php). So, the actual file may be example.com/monkey/index.html, but it can be accessed at example.com/monkey.

    H@H
     
    HiredAtHome, Jan 15, 2008 IP
  3. seth6226

    seth6226 Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    seth6226, Jan 15, 2008 IP
  4. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It can be done with mod_rewrite in your htaccess. You can't be arsed making a lot of folders and index files.
     
    Dondon2d, Jan 15, 2008 IP
  5. little_angel

    little_angel Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes, making a lot of folders and index files will be a hard work. I wouldn't suggest you to use this method if a lot of pages to be build in this way.
     
    little_angel, Jan 15, 2008 IP
  6. mads

    mads Well-Known Member

    Messages:
    762
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #6
    What about seo, what will be the best approach in relation to SEO?

    I have noticed WordPress doesn't have any extensions. Does anyone know how they implement that?
     
    mads, Jan 15, 2008 IP
  7. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #7
    .htaccess only works on Apache and a couple of other webservers but doesnt work on IIS which is the 2nd most common server after Apache. IIS requires changes in the server itself - simple enough to do but not available on most shared hosting.

    There is no notable impact on SEO as file extensions in themselves arent factored in
     
    AstarothSolutions, Jan 15, 2008 IP
  8. mads

    mads Well-Known Member

    Messages:
    762
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #8
    RewriteRule ^(.*)\.php$ /$1 [R=301,L]

    should work then (haven't tested it yet, I plan to use it on a domain that haven't been redirected to my server yet).
     
    mads, Jan 15, 2008 IP
  9. codem

    codem Peon

    Messages:
    376
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    putting an index.htm / index.html / index.php in a folder with the name monkey will solve the problem easily.
     
    codem, Jan 15, 2008 IP