1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

please help for url rewriting / to /index.html

Discussion in 'White Hat SEO' started by M4DM4X, Aug 31, 2015.

  1. M4DM4X

    M4DM4X Regular Member

    Joined:
    Jan 21, 2015
    Messages:
    241
    Likes Received:
    34
    Hi guys,

    I've just made a copy of my WP site with HTTracks to transform it into an html static site.

    Everything's went fine, but HTTracks made a little modif to some articles urls :

    it saved all the urls http://www.WPsite.com/article/
    to
    http://www.WPsite.com/article/index.html


    So if I put those files as is on my server, google will think it's duplicate, and I'll also loose all the backlinks to the original urls.

    That's why I would like to redirect the existing article/ to article/index.hml in an htaccess file.

    Is there somebody who can tell me what command I should write in the htacess file please, that(s would be great. Thanks !
     
  2. M4DM4X

    M4DM4X Regular Member

    Joined:
    Jan 21, 2015
    Messages:
    241
    Likes Received:
    34
    Seems more difficult than i thought ...
     
  3. M4DM4X

    M4DM4X Regular Member

    Joined:
    Jan 21, 2015
    Messages:
    241
    Likes Received:
    34
    Anyone please, it's for a charity website, thanks
     
  4. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,843
    Likes Received:
    2,713
    Occupation:
    blog creator
    Location:
    UK
    I don't understand why you went from Wordpress to html static site, a static site will not show blog posts. Why did you change as wordpress is far better and google likes wp. I have never heard of someone changing from wp normally it's the other way round.
     
  5. M4DM4X

    M4DM4X Regular Member

    Joined:
    Jan 21, 2015
    Messages:
    241
    Likes Received:
    34



    that's because my hosting company charge more for WP site, and is free for small html site. So I converted the WP site into a html site, it's running fine, except those modif I have to do. Could you please help now you have the explanation? thanks
     
  6. M4DM4X

    M4DM4X Regular Member

    Joined:
    Jan 21, 2015
    Messages:
    241
    Likes Received:
    34
    bump thanks people for your help
     
  7. karupoiss

    karupoiss Elite Member

    Joined:
    May 16, 2012
    Messages:
    1,873
    Likes Received:
    596
    Gender:
    Male
    Location:
    Europe
    http://www.wpsite.com/article/ IS THE SAME AS http://www.wpsite.com/article/index.html

    "/" without "index.html" is pretty much a shortcut. You don't need to worry about anything.
     
  8. gullsinn

    gullsinn Elite Member

    Joined:
    Dec 24, 2009
    Messages:
    2,438
    Likes Received:
    2,259
    Gender:
    Male
    Occupation:
    Jobless :D
    Location:
    Graveyard
    Home Page:
    You can change settings from permalinks and as well as httacces file also you can redirect one url to the other. Pm me with more detail. I might can help you out.
     
  9. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,073
    Move the pages out of the /articles directory and into the root of the project. Then it will be wpsite.com/index.html

    Your server should use the index.html as the root page so you should see wpsite.com instead of wpsite.com/index.html

    The articles will then be wpsite.com/article.html