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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:46:30+00:00 2026-05-11T14:46:30+00:00

Apparently there is a limitation (9) on how many backreferences you can access in

  • 0

Apparently there is a limitation (9) on how many backreferences you can access in htaccess RewriteRules..

But we have a RewriteRule that requires more than 9 parameters, something like this:

RewriteRule ^([^/]+)/b([0-9]+)(/a([0-9]+))?(/v([0-9]+))?(,([0-9]+))?(/(ajax|share))?(,complete)?$ /index.php?control=sites&site=brands&control_file=version_select&name=$1&campaign_id=$2&answer=$4&page=$8&option=$10&video_id=$6&page_type=research [L] 

So what happens when you try to access ‘$10’, is that it uses $1 and puts a 0 right next to it.

Has anybody been able to solve this problem, any alternative solutions or anything?

Thanks!

  • 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. 2026-05-11T14:46:31+00:00Added an answer on May 11, 2026 at 2:46 pm

    Actually, you don’t need to capture everything. Write non-capturing groups (introduced with '?:') for the things you don’t want to reuse, this should give you some breathing space again. Compare:

     Yours:                       Mine: -------------------------    --------------------------- ^([^/]+)/b          $1       ^([^/]+)/b            $1 ([0-9]+)            $2       ([0-9]+)              $2 (/a([0-9]+))?       $4       (?:/a([0-9]+))?       $3 (/v([0-9]+))?       $6       (?:/v([0-9]+))?       $4 (,([0-9]+))?        $8       (?:,([0-9]+))?        $5 (/(ajax|share))?    $10!     (?:/(ajax|share))?    $6 (,complete)?$       $11!     (,complete)?$         $7 

    But with mod_rewrite alone, you can’t go higher than 9 back-references. If you need more, use an alternative – for example capturing only the most important parts in rewrite and do some string-processing with the rest of the URL in your app.

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

Sidebar

Related Questions

There are many similar questions, but apparently no perfect match, that's why I'm asking.
I can understand that many years ago there would be this kind of limitation,
Since there is apparently no Flash control that can accept bitmap pastes , I
I have tried var dateHeaders = HttpContext.Current.Request.Headers[Date] but it contains null, apparently there is
Apparently there is a database postgres that is created by default on each postgresql
I read that SHA-1 is being retired from the FIPS 180-2 standard. Apparently there
I've done some research and found that there apparently is an easy and understandable
I'm really falling in love with the whole .Net databinding scheme... but apparently there
Apparently there is a method that takes a char and returns a char: http://download.oracle.com/javase/6/docs/api/java/lang/Character.html#toLowerCase(char
Solution? Apparently there isn't a faster way, I'm okay with that. I am just

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.