Results still showing in Google Index
10 posts
• Page 1 of 1
Results still showing in Google Index
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?
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?
Re: Results still showing in Google Index
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]
RewriteBase /
RewriteCond %{HTTP_HOST} appliedvoice\.org$
RewriteRule (.*) http\://www.avst.com/$1 [NC,R=301,L]
Re: Results still showing in Google Index
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?
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?
Re: Results still showing in Google Index
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)
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)
Re: Results still showing in Google Index
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.
I would I handle this one:
https://www.activevoice.com/
It seems to be redirecting to one of our internal portals.
Re: Results still showing in Google Index
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]
RewriteBase /
RewriteCond %{HTTP_HOST} (?:appliedvoice\.org|activevoice\.com)$
RewriteRule (.*) http\://www.avst.com/$1 [NC,R=301,L]
Re: Results still showing in Google Index
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?
https://www.google.com/#q=site:activevoice.com
Not redirecting for: https://www.activevoice.com/
Ideas?
Re: Results still showing in Google Index
Do you want https://www.activevoice.com/ to redirect to https://www.avst.com/ or http://www.avst.com/ ?
Should the https be preserved?
Should the https be preserved?
Re: Results still showing in Google Index
Actually Anton, no. It can resolve back to http://www.avst.com
Re: Results still showing in Google Index
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.
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.
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests