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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:24:47+00:00 2026-05-26T05:24:47+00:00

Here is an example RewriteRule from my .htaccess file: RewriteRule ^ABC$ index.php?partner_id=123&utm_source=partner&utm_medium=link&utm_campaign=ABC [L] So

  • 0

Here is an example RewriteRule from my .htaccess file:

RewriteRule ^ABC$ index.php?partner_id=123&utm_source=partner&utm_medium=link&utm_campaign=ABC [L]

So http://mywebsite.com/123 would point to index.php?partner_id=123&utm_source=partner&utm_medium=link&utm_campaign=ABC

Index.php file is a very important page to be properly indexed by search engines, but I would like to block http://mywebsite.com/123 from being indexed without affecting http://mywebsite.com/ or http://mywebsite.com/index.php from being indexed.

Any help would be great.

  • 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-26T05:24:48+00:00Added an answer on May 26, 2026 at 5:24 am

    If you want to block http://mywebsite.com/123, but allow http://mywebsite.com/123index.php, then you need an Allow and a Disallow:

    User-agent: *
    Allow: /123index.php
    Disallow: /123
    

    This will disallow anything that starts with /123, but specifically allow /123index.php.

    Standard robots.txt syntax doesn’t let you disallow specific URLs. Rather, it disallows URLs that start with the pattern that you specify.

    Google and Bing (and some others) have some extensions to the standard syntax. Using Google’s $ wildcard support, you could write:

    Disallow: /123$
    

    And that would block just that one URL. Other crawlers might or might not support that syntax.

    Note in response to comment:

    If I understand correctly, after your comment, you want to allow http://mywebsite.com/index.php, but block http://mywebsite.com/123. If you know there are no other resources that start with /123, then you can write:

    Disallow: /123
    

    That will block anything that starts with /123. For example, /123/file.html and /123abc. If there are other resources that start with /123 and you want to allow them, then you’ll need:

    Disallow: /123$
    

    But understand that Google and maybe Bing will respect that wildcard. Many other crawlers won’t.

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

Sidebar

Related Questions

Here goes my .htaccess file's content. Options +FollowSymLinks RewriteEngine On RewriteRule ^online-products$ products.php?type=online RewriteRule
Here are my two rewrites: RewriteRule folder/(.*)/$ /folder/subfolder/index.php?s=$1 RewriteRule folder/(.*)/review/$ /folder/subfolder/review.php?s=$1 The first rewrite
Here is an example of polymorphism from http://www.cplusplus.com/doc/tutorial/polymorphism.html (edited for readability): // abstract base
Codeinginter provide .htaccess file as explained below. It is from CI User Guide .
Here is my .htaccess now rewriteengine on rewritecond %{HTTP_HOST} ^www.example.com$ [OR] rewritecond %{HTTP_HOST} ^example.com$
I'm trying to redirect URLs from example.net/customname or example.net/customname/ to example.net/my/home.php?username=customname . This in
I have a .htaccess file - looks something like this: RewriteEngine On <FilesMatch ^.*\.php.*$>
I have a rewirte rule that rewrites my portfolio urls from portfolio.php?cat=cat-name&project=project-slug to /portfolio/cat/slug/
To start, I am a beginner with PHP and .htaccess. Here is my dilemma...
The fictional example here. Suppose I designed a class named IODevice. This class already

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.