Printer Friendly Version
Email this thread to a friend
|
php update question (In: Coding & Databases - PHP, ASP, Perl, etc.)
A question about article submit (In: Directories and Link Building)
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
marybet951
Joined: Jan 24, 2006
# Posts: 10
|
Posted: 2006-Jun-09 18:05
Our site owns several domains. About a month ago, our site starting appearing under these other domains. We have never submitted any of these to the Search Engines, so not sure how they got in, in the first place.
Given that no separate site exists for domain2, domain3 etc., can I insert a disallow entry into to the robots.txt file for domain#1?
Disallow: http:www.domain2.com
Mary
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465
|
Posted: 2006-Jun-09 20:57
Nope. The robots.txt file disallows spidering of directories and files for the domain that it is placed on.
There is no way to specify domains using robots.txt except to place the file in the root of the domain in question and put this in the file:
User-agent: *
Disallow: /
This will stop the whole domain from being spidered and indexed.
However, with several sites on the same server, that will stop all of the sites being indexed. All of them.
What you require is a site-wide 301 redirect for each of the domains that you do not want to be indexed. That is very simple to set up (the instructions go in the server configuration files) and there are some 300 prior threads in this forum that discuss exactly how to do that...
|
 |
marybet951
Joined: Jan 24, 2006
# Posts: 10
|
Posted: 2006-Jun-09 21:44
Thank you. I'll pass this on to our tech developer.
Mary
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|