SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    index.html vs. home.html

    Hi all,

    I recently rolled out a new site that replaced an old out dated one. The file I used to hold all the code for my home page is named index.html. How ever, if you do a yahoo search for the page, it fails because it is looking for a URL ending in home.html.

    I have submitted a new site map to all the search engines and thought that might clear the problem up. but I was wrong, except for Google it seams to have no problem finding the correct URL.

    is there a quick fix for this or do I have to re-write my code to use home.html?

    Thanks
    Bill

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,603
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Use a 301 redirect--either using the tools provided in your host's control panel or using an htaccess file in the root of the web folder.

    Code:
    Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Force Flow View Post
    Use a 301 redirect--either using the tools provided in your host's control panel or using an htaccess file in the root of the web folder.

    Code:
    Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html
    let me guess. The name of the redirect file would be home.html in my case.

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,603
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Your old page's name goes where "oldpage" is indicated, and your new page's name goes where "newpage" is indicated.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found the .htaccess file on the server, and it became clear to me then what you meant. I have it working fine now.


    Thank you very much.
    Bill

  6. #6
    SitePoint Enthusiast
    Join Date
    Dec 2009
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have done in on my server too but I have done it for almost all the pages because after redesigning new website i did not wanted old pages to go to 404 error so i have redirected all the old pages to new pages

    is too much redirection bad for search engines?
    Affordable and professional WordPress Developer

    and expert Joomla Developer Hire now for your next website

  7. #7
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,603
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by jeff23 View Post
    is too much redirection bad for search engines?
    Nope, it's fine.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •