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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:54:17+00:00 2026-06-06T14:54:17+00:00

this is my scenario. My application urls are showed like this: example.com/index.php/article/whatever/here in order

  • 0

this is my scenario. My application urls are showed like this:

example.com/index.php/article/whatever/here

in order to remove the index.php from url I have put this in my .htaccess and works fine:

RewriteEngine On   
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule ^(.*)$ /index.php/$1 [L]

Now, my problem is that I have include and admin.php like this:

example.com/admin.php/manage/whatever/here

And I don’t know how to remove the admin.php from url without make conflics with the index.php because I have tried this and a 500 Internal Server Error is showed:

RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(.*)$ /admin.php/$1 [L]

EDIT

Another try was this and nothing, because a 404 error is showed:

RewriteEngine On   
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule ^/(.*?)/(.*) /$1/$2 [L]

ALL my urls should have several parameteres as requiered:

example.com/this/is/a/large/url/because/is/requiered

EDIT 2:

I have create two rules, each rule alone works fine!!! but both can’t work together:

RewriteRule ^admin/(.*)$ /admin.php/$1 [L]
RewriteRule ^(.*)$ /index.php/$1 [L]
  • 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-06T14:54:18+00:00Added an answer on June 6, 2026 at 2:54 pm

    Try:

    RewriteEngine On   
    RewriteBase / 
    
    RewriteCond %{REQUEST_FILENAME} !-f  
    RewriteCond %{REQUEST_FILENAME} !-d  
    RewriteCond ${REQUEST_URI} ^admin/(.*)$ [NC]
    RewriteRule ^(.*)$ /admin.php/$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f  
    RewriteCond %{REQUEST_FILENAME} !-d  
    RewriteRule ^(.*)$ /index.php/$1 [L]
    

    Then at least test this with:

    http://www.example.com/some/url
    http://www.example.com/admin/some/url
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a scenario, I have a ASP.NET MVC application with URLs that look like
This is the scenario: -Hosted web application. -Application trust level is full trust, because
My scenario is this: A client application executes a HTTP POST against an endpoint
I am attempting to verify the security of an application. The scenario is this:
This is the scenario: I have a list of about 5000 URLs which have
Consider this scenario: An application links to 3rd party library A. A is built
In this scenario, I created a default button on my FireMonkey HD application via
Think at this scenario: I have a c# windows form application. This application was
In this hypothetical scenario there is an ASP.NET 4 web application that simultaneously aggregates
This is my scenario: Web application with a self-hosted bus (publisher) Windows service with

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.