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 1115013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:05:37+00:00 2026-05-17T03:05:37+00:00

Will this robots.txt file only allow googlebot to index my site’s index.php file? CAVEAT,

  • 0

Will this robots.txt file only allow googlebot to index my site’s index.php file? CAVEAT, I have an htaccess redirect that people who type in

http://www.example.com/index.php

are redirected to simply

http://www.example.com/

So, this is my robots.txt file content…

User-agent: Googlebot
Allow: /index.php
Disallow: /

User-agent: *
Disallow: /

Thanks in advance!

  • 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-05-17T03:05:38+00:00Added an answer on May 17, 2026 at 3:05 am

    Not really.

    Good bots
    Only “good” bots follow the robots.txt instructions (not all robots and spiders bother to read/follow robots.txt). That might not even include all the main search engine’s bots, but it definitely mean that some web crawlers will just completely ignore your requests (you should look at using .htaccess or password protection if you really want to stop bots/crawlers from seeing parts of your site).

    Second checks
    Google makes multiple visits to your website, including appearing as a browsing user. This second visit will ignore the robots.txt file. The second visit probably doesn’t actually index (if that’s your worry) but it does check to make sure you’re not trying to fool the indexing bot (for SEO etc).

    That being said your syntax is right… if that’s all you’re asking, then yes it’ll work, just not as well as you might hope.

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

Sidebar

Related Questions

this is my robots.txt . I want to only allow the base url domain.com
I have a website that generates pdf file from CSP. Will this pdf file
I have a simple question. Let's say that I have this in robots.txt: User-agent:
Will this work for testing whether a value at position index exists or not,
I have a form where when it was created it will this query public
I have installed an app on my iPod touch. Will this app expire when
I have an .htaccess file using mod_rewrite to redirect URLs from the old website
I have a question questions regarding SEO, Robots.txt and wordpress Here's what my robots.txt
Just because software is automated doesn't mean it will abide by your robots.txt. What
I am making a site that each account will have an ID. But, I

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.