Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8760169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:58:42+00:00 2026-06-13T14:58:42+00:00

I have a website (Ex: www.examplesite.com), and I am creating another site as a

  • 0

I have a website (Ex: http://www.examplesite.com), and I am creating another site as a separate, stand-alone site in IIS. This second site’s URL will make it look like it’s part of my main site: http://www.examplesite.com/anothersite. This is accomplished by creating a virtual directory under my main site that points to the second site.

I am allowing my main site (www.examplesite.com) to be indexed in search engines, but I do not want my second, virtual directory site to be seen by search engines. Can I allow my second site to have its own robots.txt file, and disallow all pages for that site there? Or do I need to modify my main site’s robots.txt file and tell it to disallow the virtual directory?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:58:43+00:00Added an answer on June 13, 2026 at 2:58 pm

    You can’t have an own robots.txt for directories. Only a “host” can have it’s own robots.txt: example.com, http://www.example.com, sub.example.com, sub.sub.example.com, …

    So if you want to set rules for www.example.com/anothersite, you have to use the robots.txt at www.example.com/robots.txt.

    If you want to block all pages of the sub-site, simply add:

    User-agent: *
    Disallow: /anothersite
    

    This will block all URL paths that start with “anothersite”. E.g. these links are all blocked then:

    • www.example.com/anothersite
    • www.example.com/anothersite.html
    • www.example.com/anothersitefoobar
    • www.example.com/anothersite/foobar
    • www.example.com/anothersite/foo/bar/
    • …

    Note: If your robots.txt already contains User-agent: *, you’d have to add the Disallow line in this block instead of adding a new block (bots will stop reading the robots.txt as soon as they found a block that matches for them).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an asp.net website http://www.site.com . This web app is also running on
I have a website say www.mywebsite.com/demo . When ever if anyone requests this site,
I have a website http://www.domain.com and I am creating a separate section just for
I have a url which could be www.website.com/order/?pg3=2 or www.website.com/orderstatus/?pg2= There could be several
I have a String with this content: href=http://www.website.com/ /> [...] [...] I just want
I have a website (URL: http://www.fromthepitch.com ). There seems to be a problem with
Background: Suppose I have a website that is hosted on http://www.example.com and the site
I have a website http://www.domain1.com . Is it possible to register a second domain,
I have this website: http://www.princeslick.com/?page_id=28 and I have installed the nextgen plugin on it,
I have this website: http://www.ryansammut.com/orijen/contact.html . The footer is also being more lenghty than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.