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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:06:02+00:00 2026-06-14T18:06:02+00:00

our website’s team just discovered that any user can add a slash ‘/’ then

  • 0

our website’s team just discovered that any user can add a slash ‘/’ then any string after a URL that ends with a .php extension and still access the same original page.

For example:
I can access http://www.mydomain.com/index.php with:

  • http://www.mydomain.com/index.php/test
  • http://www.mydomain.com/index.php/test/123
  • http://www.mydomain.com/index.php/wqeqwew/2234dwd

(Note: Additional strings after index.php/ are non-existent in the server, they’re just some garbage)

Another problem is that with my dynamic URLs, I can always add a nonexistent php file in between my domain name and the first parameter.

For example:
I can access http://www.mydomain.com/product/one with:

  • http://www.mydomain.com/test.php/product/one
  • http://www.mydomain.com/imnothere.php/product/one

How can I prevent this from happening and how do I deal with it? Is this a serious problem in terms of SEO or security? I want the website to return 404 error whenever these kinds of URL are entered or clicked in the browser.

Any help is greatly appreciated. Thanks!

EDIT:

I think I already fixed it. For the first problem, I added AcceptPathInfo Off in my .htaccess. And for the second problem, I just added ^ before my RewriteRule for my dynamic URL, e.g. RewriteRule ^product/(.*)$ so that nobody can add anymore extra string in between the domain name and the first parameter. Thanks for all the help!

  • 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-14T18:06:02+00:00Added an answer on June 14, 2026 at 6:06 pm

    How can I prevent this from happening and how do I deal with it?

    This is due to Apache’s AcceptPathInfo directive. You can turn it off – if the server is configured accordingly, you’ll just need a .htaccess file for it.

    Is this a serious problem in terms of SEO or security?

    I can’t think of a way in which it could be a serious problem. It’s generally enabled by default in most handlers, and is being routinely used as a “poor man’s mod_rewrite” (A way to provide fancy-looking URLs).

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

Sidebar

Related Questions

We need to add a feature to our website that allows the user to
Our website lets users create small widgets that can be embedded on other third
So on our website, we have multiple reports that can be downloaded as an
Our website has one section which often changes to match the user. (examples are
Our website runs the user's input via HtmlTidy to clean it. Apparently while doing
Currently our website uses links to allow the user to change their locale. The
The homepage of our website (legendboats.com) is 4 small cells, that if you click
Our programer built a facebook connect feature on our website. The steps: 1. User
Our website seems to be slower than it used to be, how can I
Our website is an AJAX website that makes no page requests after the initial

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.