Credit Cards - Sexy Halloween Costumes - Advertising - Debt - eHarmony Coupon

PDA

View Full Version : Creating Directory Redirect


larssonk22
Mar 6th 2008, 1:09 pm
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.

nebhotep
Mar 6th 2008, 11:09 pm
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

larssonk22
Mar 7th 2008, 2:58 am
There lies a problem one folder is

www.mydomain.com/folder

The google sitemaps link brings up a 404 error. However the folder has content

www.mydomain.com/folder/content1.htm

So I don't understand why it has a problem with the folder and not the content within it :confused: