Nicer looking URL structure

Discussion in 'HTML & Website Design' started by cmF, Jun 28, 2010.

  1. #1
    Hi there,

    I'm building a website and was wondering how I can get better looking URLs.

    I don't want to have the .html
    - example.com/about-us.html
    - example.com/services.html
    - example.com/contact-us.html

    Instead I would like to use
    - example.com/about-us
    - example.com/services
    - example.com/contact-us

    I've tried this method before using directories but I'd prefer not to
    - example.com/about-us/index.html
    - example.com/services/index.html
    - example.com/contact-us/index.html
    However, this method gets kind of complicated when I have to rewrite all my images and css files to back one level with "../"

    Is there an easier way to get nicer looking URLs? Thanks in advance for the help! :)
     
    cmF, Jun 28, 2010 IP
  2. createdevelop

    createdevelop Well-Known Member

    Messages:
    267
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Are you uilding your website with anything in particular, or are you just using static HTML?
     
    createdevelop, Jun 28, 2010 IP
  3. cmF

    cmF Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Just static HTML. It's a simple 7 page website. I just think no .html extension would look nicer and doesn't it have better SEO?
     
    cmF, Jun 28, 2010 IP
  4. silv3r.m00n

    silv3r.m00n Active Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #4
    There is nothing like , removing the html will give you a better SEO. And to have those kind of Urls you have to use htaccess url rewrite. Something like :
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 ^[^\.]+$
    RewriteRule ^(.*)$ /$1.html [L]
    </IfModule>
     
    silv3r.m00n, Jun 28, 2010 IP