Re: [EMAIL PROTECTED] Mod RewriteRule Help : Accepting Variable Number Of Arguments

2007-03-31 Thread Kristopher Yates
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 ^(.*)/(.*

Re: [EMAIL PROTECTED] Mod RewriteRule Help : Accepting Variable Number Of Arguments

2007-03-31 Thread Eric Covener
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

Re: [EMAIL PROTECTED] Mod RewriteRule Help : Accepting Variable Number Of Arguments

2007-03-31 Thread Eric Covener
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

Re: [EMAIL PROTECTED] Mod RewriteRule Help : Accepting Variable Number Of Arguments

2007-03-31 Thread Kristopher Yates
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

Re: [EMAIL PROTECTED] Mod RewriteRule Help : Accepting Variable Number Of Arguments

2007-03-31 Thread Dragon
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

[EMAIL PROTECTED] Mod RewriteRule Help : Accepting Variable Number Of Arguments

2007-03-30 Thread Kristopher Yates
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.