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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:41:08+00:00 2026-06-11T19:41:08+00:00

I have a url www.example.com/abc/abc.php If I change it to www.example.com/abc/abc.php/asdasd, some kind of

  • 0

I have a url “www.example.com/abc/abc.php”
If I change it to “www.example.com/abc/abc.php/asdasd”, some kind of infinite loop starts and the server’s memory peaks to 100%.

I have heard that there’s some way by .htaccess by which I can redirect any “abc.php/asdasd” to “abc.php” only. Please help how, as I am not able to understand it from other examples mentioned on net.

NOTE : I dont want this “/” to be removed if it is put at the end of directories though.

  • 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-11T19:41:09+00:00Added an answer on June 11, 2026 at 7:41 pm

    I was able to achieve what I wanted by the following htaccess code :

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)\.php/(.*) $1.php [F]
    </IfModule>
    

    This may not be perfect, but gets the job done. Now anything after the text ‘abc.php’ results in a page-not-found.
    Works for cases like :

    http://www.website.com/abc.php/

    http://www.website.com/abc.php/asd

    http://www.website.com/abc.phpasd

    http://www.website.com/abc.php?

    etc.

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

Sidebar

Related Questions

Let's say I have this url: www.example.com/test.php?page=4 How do i retrieve the value of
I have a url like www.example.com/mypage.php?id=324 That number 324 is auto incremented (meaning that
I have a url like this - www.example.com/blog.php/username, it will take you to the
I have a url of the form: www.example.com/r/abc/1234 that I want to rewrite to:
I have this URL: http://www.example.com/prospective/deginfo.php?classname=PE&diploma_description=BSc+in+Mathematical+Sciences That I need to redirect to this URL instead:
I have following url: www.example.com/index.php/search/search_data/Doctor:a/Gender:Male/Language:Urdu/ and I want to convert it to associative array
I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
I have a URL where I am passing in a keyword (http://www.example.com/store?keyword=google). I want
If you have a url such as the one as follows: http://www.example.com/400x200 is it
Is this a valid http url http://www.example.com?x&y or we must always have = sign

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.