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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:03:44+00:00 2026-05-18T10:03:44+00:00

I often see in PHP MVC applications an Apache RewriteRule that looks like this:

  • 0

I often see in PHP MVC applications an Apache RewriteRule that looks like this:

RewriteRule ^.*$ - [NC,L]

The Apache docs for the RewriteRule directive states:

A dash indicates that no substitution
should be performed (the existing path
is passed through untouched). This is
used when a flag (see below) needs to
be applied without changing the path.

So from what I gather, you can use this to transform a path using a flag i.e [NC] for the RewriteRules to follow?

Could someone please explain this dash RewriteRule a little better?

  • 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-18T10:03:45+00:00Added an answer on May 18, 2026 at 10:03 am

    See this answer:

    mod_rewrite: what does this RewriteRule do?

    It essentially means “do nothing if the previous RewriteConds match”. The next RewriteRule(s) will instead do something else when the RewriteConds don’t match. In the case of the post i linked you to, the next RewriteRule rewrites the url including “index.php”.

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

Sidebar

Related Questions

I often see something similar to this below in PHP scripts using MySQL query(SET
I often see this idiom when reading php code: public function __construct($config) { if
I often see code where the ajax files being contacted ( somefile.php in the
I notice that there are a few common ways to setup RewriteRule s for
Is there a place where we can see PHP <=> C++ equilavent libraries/function for
I know that in PHP, the only difference between double quotes and single quotes
I currently use CodeIgniter as my framework of choice when using PHP. One of
I've been a PHP developer for many years now, with many tools under my
Reflection API is great thing out there to manipulate the OOP stuff and looks
What is the default value of class member variables in PHP? Why do 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.