How to rename already indexed files & directories

Discussion in 'Site & Server Administration' started by Svato, Apr 4, 2005.

  1. #1
    I need to rename several files and move other files to a different directory on my site. These files are already indexed in Google. I was wondering what't the best way to go around it. Would it matter if they'll be indexed twice under different name/directory, or should I use some 301 redirect or meta tag to tell Google that their name/location has changed?
     
    Svato, Apr 4, 2005 IP
  2. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The 301 option will get your new URI's indexed faster, and help pass PR to the new pages.
     
    nullbit, Apr 4, 2005 IP
  3. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #3
    Will.Spencer, Apr 4, 2005 IP
  4. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I just changed my site from dynamic urls to static urls (it's still dynamic, I'm just using an ISAPI Rewrite filter to parse the url) and I coded the pages to generate a 301 if someone / something requests the old url which takes them to the new url. Nearly half of my site has been re-spidered and many pages have improved rank because of this.
     
    mopacfan, Apr 4, 2005 IP
  5. carowan

    carowan Peon

    Messages:
    473
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #5
    carowan, Apr 4, 2005 IP
  6. Svato

    Svato Peon

    Messages:
    88
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    So I'm assuming that I have to do this for each page separately, correct?

    Something like:

    redirect 301 /olddirectory/oldfile.html /newdirectory/newfile.html
    redirect 301 /olddirectory/oldfile2.html /newdirectory/newfile2.html
    ...etc...

    Right?
     
    Svato, Apr 4, 2005 IP