How to fix issue of index.html paage

Discussion in 'Search Engine Optimization' started by ratan, Mar 27, 2010.

  1. #1
    I have a website which is fully search engine optimized , But i am facing one problem. I a go back to my home page form any other inner pages in my website then the home page URL is showing as index.html( my site is designed in HTML pages ). How can i chnage this so that my site alwasy hows as www dot mydomain dot com
     
    ratan, Mar 27, 2010 IP
  2. pattindahat

    pattindahat Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You are talking about url rewriting. It is different from host to host. So search google: url rewriting *host name*

    It should have instructions laid out well. It can slow down your site a bit, if that matters.
     
    pattindahat, Mar 27, 2010 IP
  3. Brad Proctor

    Brad Proctor Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    First, don't link to "index.html", link to "/" instead. For making sure that you always have www, you'll want something like the following in your .htaccess file
    
    RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
    
    Code (markup):
     
    Brad Proctor, Mar 27, 2010 IP