Mobile app version of vmapp.org
Login or Join
Debbie626

: Remove directory from Google SE results I was developing a Joomla site in /new/ which was to replace the Mambo site in the root directory. I thought I put a robots file there to stop bots

@Debbie626

Posted in: #GoogleSearchConsole #Redirects

I was developing a Joomla site in /new/ which was to replace the Mambo site in the root directory. I thought I put a robots file there to stop bots from crawling the new site, but this is not the case.

The new site has since been moved into the root directory, and the old site has temporarily been moved into /old/

How do I remove all mention of pages under /new/ from Google's index? I know Google Webmaster Tools allows you to remove individual pages, but I don't know if this applies to individual directories also.

Is it quicker to place an .htaccess file in this folder with a catchall 301 redirect to / ?

Update:

I've added individual 301 redirect entries to .htaccess to redirect the old site's pages to the new site's pages, but the old URLs still generate 404 errors. Any ideas why? The format I used was:

Redirect 301 www.site.com/old.htm www.site.com/new.htm


I added these at the end of the .htaccess file.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

Definitely do a 301 redirect from the old URLs (those in the /new/ directory) to the new URLs (those in the / directory). This will:


Tell Google those pages have moved and to update their index
Help anyone who finds the old URLs in the search results to find the new URLs (they will be automatically redirected to the URL)


This process will be seamless, too, which is nice. And a simple rule in an .htaccess file should take care of it.

UPDATE

Try this:

RewriteEngine On
RewriteRule /new/(.*) / [R=301,L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme