4
   

Prevent search engines from indexing your site by IP address

 
 
zoomsan
 
  1  
Reply Tue 2 Nov, 2004 06:59 pm
Craven de Kere wrote:
Just add www to the condition. My rules are aimed at redirecting if an ip is used, so as long as it uses domain.com it's not enacted.

Just change the rule to specify www.domain.com
when using this rule, which what i was saying originally, i get an error for too many redirects.

RewriteCond %{HTTP_HOST} !^www\.site\.com [NC]
RewriteRule (.*) http://www.site.com/community/$1 [R=301,L]

I am not making this up at all. Any ideas what the story behind that could be?
0 Replies
 
zoomsan
 
  1  
Reply Thu 4 Nov, 2004 05:27 am
I have tested this numerous times, and it is a problem - or I would not post. Any ideas why? No need for a PR split.
0 Replies
 
zoomsan
 
  1  
Reply Tue 9 Nov, 2004 03:07 am
Ok I guess not. I like being ignored.

Very Happy
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 9 Nov, 2004 11:43 pm
I gave you example code, are you sure you tried copying it? I know you think you did, but there is a reason I don't think you did.

Try using my code exclusively (changing the references to suit your urls) and see if it works.

If it doesn't look in your error logs and see what is happening.
0 Replies
 
LocanT
 
  1  
Reply Fri 12 Nov, 2004 02:18 am
Craven de Kere wrote:
Here are my own rules in the forum directory, they work fine:

Code:RewriteEngine on
RewriteCond %{HTTP_HOST} !^.*able2know\.com [NC]
RewriteRule (.*) http://www.able2know.com/forums/$1 [R=301,L]

RewriteRule ^forums.* index.php
RewriteRule ^a2k-post([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^a2k-post([0-9]*).* viewtopic.php?p=$1 [L]
RewriteRule ^a2k-view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^ask-about([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^ask-about([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^a2k-about([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]


If you want to see them all in action: http://67.19.244.238/forums/about22856.html


Craven
Am I mistaken or this is quite different to the download mod rewrite suppled in your SEO.

I have and adapted this
Quote:
RewriteEngine On
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]


Have you changed it recently?
0 Replies
 
LocanT
 
  1  
Reply Fri 12 Nov, 2004 02:23 am
Sorry I am confusing myself here

I copied this the other day from this thread?

Quote:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^.*able2know\.com [NC]
RewriteRule (.*) http://www.able2know.com/forums/$1 [R=301,L] RewriteRule ^forums.* index.php
RewriteRule ^a2k-post([0-9]*).html&highlight=([a-zA-Z0-9]*) a2k-post.html$1&highlight=$2 [L,NC]
RewriteRule ^a2k-post([0-9]*).* a2k-post.html$1 [L]
RewriteRule ^a2k-view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* about.html$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) about.html$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest about.html$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* about.html$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* about.html$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* about.html$1 [L,NC]
RewriteRule ^about([0-9]*).html about.html$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* ask-about.html$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* about.html$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* about.html$1&unwatch=topic [L,NC]
RewriteRule ^ask-about([0-9]*).html ask-about.html$1 [L,NC]
RewriteRule ^ask-about([0-9]*).* ask-about.html$1 [L,NC]
RewriteRule ^a2k-about([0-9]*)-([0-9]*)-([0-9]*).* ask-about.html$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* about.html$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* about.html$1&view=next [L,NC]



Is this a better version??
0 Replies
 
zoomsan
 
  1  
Reply Fri 12 Nov, 2004 03:01 am
I am also quite confused with which is the "right code" - in regards to your question and mine.
0 Replies
 
Craven de Kere
 
  1  
Reply Fri 12 Nov, 2004 03:46 am
Post your .htaccess code for the forum directory please.
0 Replies
 
LocanT
 
  1  
Reply Fri 12 Nov, 2004 09:55 pm
Quote:

<Files .htaccess>
Order allow,deny
deny from all
</Files>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.abc\.com
RewriteRule (.*) http://www.abc.com/phpBB2/$1 [R=301,L]
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^def([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^def([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^def([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^def([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^def([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^def([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]



Thanks in advance
0 Replies
 
zoomsan
 
  1  
Reply Fri 12 Nov, 2004 11:53 pm
Code:
RewriteEngine on

RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]
0 Replies
 
Craven de Kere
 
  1  
Reply Sat 13 Nov, 2004 02:32 pm
Try this, replacing only " domain.com" and "forumpath".

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.domain.com/forumpath/$1 [R=301,L]


RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]
0 Replies
 
zoomsan
 
  1  
Reply Sat 13 Nov, 2004 04:59 pm
The top part of that code did it. the www without the domain name worked.

The bottom caused problems, so I combined it with my old code and everything now works like its supposed to. Thanks
0 Replies
 
Craven de Kere
 
  1  
Reply Wed 17 Nov, 2004 12:09 am
My pleasure
0 Replies
 
zoomsan
 
  1  
Reply Tue 23 Nov, 2004 01:20 am
Houston we have a problem... that solution created another error.

Code:http://www.site.com/forums//home/future/public_html/forums


this is the redirect that the server attempts to access now when this is entered:

site.com/forums

Now

site.com/forums/ does successfully redirect to

www.site.com/forums/

However, you can see that basically the server logically is executing the no ip and www redirect rule in root, and then also in the forums, making /home/future/public_html/forums the $1 in the forums directory htaccess file.

Any idea on how to circumvent this so

site.com/forums also redirects to www.site.com/forums/

Gracias.
0 Replies
 
zoomsan
 
  1  
Reply Thu 25 Nov, 2004 10:53 am
Bump
0 Replies
 
zoomsan
 
  1  
Reply Fri 7 Jan, 2005 07:21 pm
Bump again - no response for over a month
0 Replies
 
zoomsan
 
  1  
Reply Mon 10 Jan, 2005 02:20 pm
Bump x3.. anyone?
0 Replies
 
Craven de Kere
 
  1  
Reply Mon 10 Jan, 2005 07:45 pm
Stop bumping, your request is there and if anyone wants to answer it they can.
0 Replies
 
zoomsan
 
  1  
Reply Mon 10 Jan, 2005 07:56 pm
Not allowed to bump in this forum? Well it's your software - thought I could get support here, the flaw is there. Thought it would help your software as well.
0 Replies
 
Craven de Kere
 
  1  
Reply Mon 10 Jan, 2005 08:01 pm
What "flaw"? We don't have your problem and your questions are not relevant to the topic of the thread.

Your bumping makes people like me uninterested in helping you, all it achieves is to irritate people.
0 Replies
 
 

Related Topics

SEO - Going from 0 PR on up - Discussion by jespah
How Rich Pins work ??? - Question by OnceUponAtime
Need a bit of Google advice - Question by bible quizzer
Google Indexing Issue - Question by brainstudioz
Bing Search results - Discussion by iankyra
What is best way for Off-Page seo in 2017? - Question by honesttravel1
 
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/24/2024 at 08:03:24