Solved

Virtual Hosting and Robot.txt

Posted on 2006-06-15
6
244 Views
Last Modified: 2010-03-04
I have 2 websites running on my web server.   I am running Linux and Apache.

My question is:  How do I get my robots.txt files working for both domains?

Do I just both a robot.txt in each of the website root directories?  If so, I have done that.   But my second website still is not coming up.  My first website is still showing old stuff for 6 months ago when I search in google for it.  I have updated my site since then with major changes.

But the main one I am concerned about is the second website.   Here is a week, it will be fully functional and I want it to come up in google or other.

Thanks...



0
Comment
Question by:strongd
  • 3
  • 3
6 Comments
 
LVL 9

Expert Comment

by:smidgie82
ID: 16913458
As for your initial question, you need to have robots.txt in the root of each website.  However, robots.txt will in no way help you get indexed faster.  Go to Google Sitemaps and register your sites.  Then download a utility to create sitemaps and submit them.  That WILL help you get indexed faster.
0
 

Author Comment

by:strongd
ID: 16915953
How does the spider know that there is 2 websites or to different directory to go to?
0
 
LVL 9

Accepted Solution

by:
smidgie82 earned 125 total points
ID: 16916141
I think we have a difference of definition here.  By two different websites, I assume you mean two VirtualHost's running on the same or different machine.  In that case, in order to get to either website in the first place, the spider will already need to know the domain name of the website it wants.  It won't know or care that the two are on the same machine, and more than likely it won't be the same spider traversing both sites regardless.  By developing a google sitemap and submitting it to Google, you'll be giving Google's bots a starting address and a list of files you consider important to your site.  That's how they'll find your site, and they'll handle the rest from there.

If the above does not describe your situation (i.e., your two websites share a common name), then please describe your configuration in more detail so I can give appropriate advice.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:strongd
ID: 16916299
Thanks alot for your help.   Yes, I have 2 websites running on the same machine using virtual hosting.   So I guess I need to go to google and do the sitemap thing.

Thanks again for your help.  I think you answered my question.

0
 
LVL 9

Expert Comment

by:smidgie82
ID: 16916301
My pleasure.  Good luck!
0
 

Author Comment

by:strongd
ID: 16916319
Thanks, hopefully I can get this thing going so I can get people to my second site.   The first site was more or less a play toy/ learning thing...  

Thanks again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
remove Handler and Add Handler for one file 3 39
tomcat LDAP authentication issue 3 145
ProxyPass - Problem 5 120
htaccess file 3 74
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now