help with simple question about page extension

Discussion in 'HTML & Website Design' started by poker-bonus, Feb 24, 2009.

  1. #1
    Hello,

    This is really a very simple question, and we will get over it in a minute.

    Most pages look like: www.mysite.com/mypage.htm
    Or it could be my page.php or .html etc

    My main page look like www.mysite.com/
    This is because in this case there is a index.htm file in the directory

    And of course / means directory.

    Now some pages look like:
    www.mysite.com/mypage/ for every page in the site. I dont think they have a directory for each page with one index.htm page inside each?

    Can someone tell me how they do it?

    Thanks:D
     
    poker-bonus, Feb 24, 2009 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I will if you give me a poker bonus
     
    wd_2k6, Feb 24, 2009 IP
  3. poker-bonus

    poker-bonus Member

    Messages:
    155
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    lol.

    you can check my sig; I am still building pokerbonustips.com, but you can get some poker bonuses there, depending on what room you like to join.:D
     
    poker-bonus, Feb 24, 2009 IP
  4. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #4
    OK I will check them out :)

    If you server is Apache then you can use mod_rewrite inside a file called .htaccess inside your root directory.

    I've never tried it but try this inside a .htaccess file (taken from elsewhere):

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html -f
    RewriteRule ^(.*)$ $1.html

    A .htaccess file can be created in notepad, just save it as that exact name and upload it to the root.
    This is assuming you have apache and mod_rewrite enabled.
     
    wd_2k6, Feb 24, 2009 IP
  5. poker-bonus

    poker-bonus Member

    Messages:
    155
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #5
    thanks for the response.

    so basically people like to rewrite page names; any reason?

    seo wise any advantage?
     
    poker-bonus, Feb 24, 2009 IP
  6. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes, it's for many reasons, it creates easy to remember URL's for page visitors, and also helps for SEO as if the page has a longer dyanmic URL it's not really relevant to the page, so rewriting URL's help the search engine know what the page is about.
     
    wd_2k6, Feb 24, 2009 IP
  7. poker-bonus

    poker-bonus Member

    Messages:
    155
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #7
    Interesting wd.

    One last question: if I have a site map with all .htm files, and I do what you said, Google will not be confused?

    Or similarly if I have outside links with .htm, will they find their way?

    Thank you
     
    poker-bonus, Feb 24, 2009 IP
  8. mike810

    mike810 Peon

    Messages:
    161
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    yes, it should be fine for the search engines.
     
    mike810, Feb 24, 2009 IP