Creating Directory Redirect

Discussion in 'HTML & Website Design' started by larssonk22, Mar 6, 2008.

  1. #1
    For some reason Google has cached some of my website pages, and has denied me removal :mad:

    I have put 301 redirect for pages that no longer exist, however Google has also listed a folder eg. "www.mydomain.com/folder"

    How can I redirect out of this non exisitant folder to another page located on my site.
     
    larssonk22, Mar 6, 2008 IP
  2. nebhotep

    nebhotep Active Member

    Messages:
    244
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #2
    you shoul put an index.html or index.php page in all your folders to avoid listings from users. Then you can put a redirect script in those pages.
    To avoid google to crawl content from a directory you can edit the robots.txt file by adding
    block mydomain dot com/folder
     
    nebhotep, Mar 6, 2008 IP
  3. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #3
    larssonk22, Mar 7, 2008 IP