Results still showing in Google Index

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 29
Joined: 17 Apr 2013, 18:55

Results still showing in Google Index

18 Oct 2013, 20:47

Over the years, we have acquired a number of different websites. Most of them are not being used, so I have added 2 lines of code to my REWRITE Script to take care of it, however, I noticed that Google is starting to show them in the index again...so I am not sure what I am missing.

In essence, I do not want any of these domain names to show up in Google's Index (because of duplicate content issues).

For the site, www.appliedvoice.org, I have always used these (4) lines to take care of it....

RewriteCond %{HTTP:Host} ^appliedvoice\.org$
RewriteRule (.*) http\://www.avst.com$1 [NC,R=301]

RewriteCond %{HTTP:Host} ^[^.]+\.appliedvoice.org$
RewriteRule ^/(.*)$ http://www.avst.com/$1 [NC,R=301]

However, when I check on Google's index at https://www.google.com/#q=site:appliedvoice.org, I noticed this link appearing:
www.appliedvoice.org/forum/forum_topics.asp?FID=2&TS=0


What am I missing?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Results still showing in Google Index

21 Oct 2013, 06:57

Please try to use the following 2 lines instead of the 4 you have now:

RewriteBase /
RewriteCond %{HTTP_HOST} appliedvoice\.org$
RewriteRule (.*) http\://www.avst.com/$1 [NC,R=301,L]

User avatar
Posts: 29
Joined: 17 Apr 2013, 18:55

Re: Results still showing in Google Index

21 Oct 2013, 13:59

Another question.....if I am writing data to the .HTACCESS file (not from within ISAPI Rewrite (where the data is checked) but from an external place.

If an "ERROR" is found in the .HTACCESS file at line 80, but let's say you have 500+ lines in your script. Does the error at line 80 nullify all of the lines after line 80? Does this make sense?

User avatar
Posts: 29
Joined: 17 Apr 2013, 18:55

Re: Results still showing in Google Index

21 Oct 2013, 15:55

Anton-

Almost all of my scripts are with the base as being blank.... can your solution be reworked with the forward slash removed. (I would prefer to not have to rewrite my other rules).

RewriteBase /
RewriteCond %{HTTP_HOST} appliedvoice\.org$
RewriteRule (.*) http\://www.avst.com/$1 [NC,R=301,L]

be rewritten with

RewriteBase (blank)

User avatar
Posts: 29
Joined: 17 Apr 2013, 18:55

Re: Results still showing in Google Index

21 Oct 2013, 20:08

Okay...i changed my code to use your version of the code....however, a couple are still getting through.

I would I handle this one:

https://www.activevoice.com/

It seems to be redirecting to one of our internal portals.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Results still showing in Google Index

22 Oct 2013, 05:51

Please try to change the rule like this:

RewriteBase /
RewriteCond %{HTTP_HOST} (?:appliedvoice\.org|activevoice\.com)$
RewriteRule (.*) http\://www.avst.com/$1 [NC,R=301,L]

User avatar
Posts: 29
Joined: 17 Apr 2013, 18:55

Re: Results still showing in Google Index

22 Oct 2013, 14:42

Still not working for the HTTS Redirects, see this:

https://www.google.com/#q=site:activevoice.com

Not redirecting for: https://www.activevoice.com/

Ideas?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Results still showing in Google Index

23 Oct 2013, 05:40

Do you want https://www.activevoice.com/‎ to redirect to https://www.avst.com/ or http://www.avst.com/ ?
Should the https be preserved?

User avatar
Posts: 29
Joined: 17 Apr 2013, 18:55

Re: Results still showing in Google Index

23 Oct 2013, 19:05

Actually Anton, no. It can resolve back to http://www.avst.com

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Results still showing in Google Index

24 Oct 2013, 05:15

Hmm, weird. Then this rule should handle both http and https request equally fine:

RewriteBase /
RewriteCond %{HTTP_HOST} (?:appliedvoice\.org|activevoice\.com)$
RewriteRule (.*) http\://www.avst.com/$1 [NC,R=301,L]

What do you get upon requesting https://www.activevoice.com/‎ ?
Could you provide the rewrite.log records for this request.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 9 guests