I have a web directory site that was previously in the root folder, but because of having to re-develop the site, I moved this to a folder, a few days ago so it is at http://bit.ly/1v5wwlA.
Google on the hand, the primary provider of guests still has thousands of links it assumes are still located in root folder & so I have been getting hundreds of page not found errors.
At the time I moved this directory, I placed a Wordpress-based site in the root folder & submitted site maps for both to Google, though I guess it will take a while before the urls are in the Google db.
For the old site, I still need it for a couple of months and moved it to site.com/oldsite, ... all links are still valid only that, they have the directory "oldsite" appended to site.com/oldsite. So for a link in the Google database like site.com/countryA/xxx/abc/123.html, this becomes site.com/oldsite/countryA/xxx/abc/123.html. The regional directory covers about 20 different countries.
Links like "site.com/countryA/xxx/abc/123.html" or like site.com/countryC/xxx/axyzc/atrez/187.html will indeed never exist again & until the old site is discontinued, will have that directory added as explained above.
I wonder how to best deal with that.
Is it for example possible or does it make sense to say use some code in .htaccess for all links directed to site.com/countryA/.../.../abc.html, or site.com/countryB/.../foo.html, or ... site.com/countryX by Google to be redirected to their new locations site.com/oldsite/countryA/.../.../abc.html, site.com/countryB/.../foo.html, ... site.com/oldsite/countryX/ .... without creating any error messages?
If so, what exactly would this .htaccess code look like? (Not a coder ;) ). If that is possible, I can add this code, if I had it.
I must add that, the directories like countryA, countryB, etc do not exist in root folder & are created dynamically. This is because I saw in some tutorial I think that a directory named in some .htaccess code for re-direction must exist & have content, or something like that.
Since the new site in root folder is Wordpress-based, I thought I could use one of the many re-direction page not found plugins, but most of these mostly deal wit simple re-direction or work for WP sites, but the directory in this case is not WP-based.
The link structure generally for directory links only changes with the new folder being placed after ".com" so we have something like ".com/countryname/..." changing to ".com/oldsite/countryname/...", otherwise everything is the same. There are otherwise thousands of listings in total, but each listing basically begins with a country directory, etc so we have something like => site.com/countryname/main-category/subcategory/.../abc.html now => site.com/oldsite/countryname/main-category/subcategory/.../abc.html, etc
The writer of the directory script says something like they can "add many redirection rules to the .htaccess file of your WordPress. We will need to add these rules in the way they will not effect WordPress links. " ... but the hefty price frightened me & made me come to request for help here, which I would appreciate.
I would do this myself if I could code ... ,)
I can also clarify specific issues if asked.
Any assistance would be very much appreciated.
Kind regards & thank you in advance