t;[EMAIL PROTECTED]>
Reply-To: users@httpd.apache.org
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Mod RewriteRule Help : Accepting Variable Number
Of Arguments
Date: Sat, 31 Mar 2007 22:16:09 -0400
On 3/31/07, Kristopher Yates <[EMAIL PROTECTED]> wrote:
Hi Dragon,
RewriteRule ^(.*)/(.*
On 3/31/07, Eric Covener <[EMAIL PROTECTED]> wrote:
Try making the previous expressions non greedy, and maybe use + instead of *
Sorry, as in /(.+?)/
--
Eric Covener
[EMAIL PROTECTED]
-
The official User-To-User support foru
On 3/31/07, Kristopher Yates <[EMAIL PROTECTED]> wrote:
Hi Dragon,
RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/?$
/index.php?section=$1&page=$2&mode=$3&item=$4&action=$5 [L]
Parsing http://domain.com/section/page/mode/item/action/
Results:
_REQUEST[section] = "section/page"
_REQUEST[page] = "mode"
_R
so
Final note, it seems taking /? out of the rules seems to make no difference,
as rules function the same when it is removed.
Any ideas?
Thanks for your time,
Kris
From: Dragon <[EMAIL PROTECTED]>
Reply-To: users@httpd.apache.org
To: users@httpd.apache.org
Subject: Re: [EMAIL PRO
Kristopher Yates did speak thusly:
Hello,
Here is an example URL I'm trying to create a RewriteRule for:
index.php?section=help&page=test&mode=IN&item=4&action=edit
I have a rule that works when the request URL contains the
appropriate number of arguments but does not work when there are
few
Hello,
Here is an example URL I'm trying to create a RewriteRule for:
index.php?section=help&page=test&mode=IN&item=4&action=edit
I have a rule that works when the request URL contains the appropriate
number of arguments but does not work when there are fewer arguments than
the Rule expects.