Advertisement

05.13.2008 at 12:59PM PDT, ID: 23399233 | Points: 500
[x]
Attachment Details

rewrite rule with wildcards in string

Asked by amakaram in Apache Web Server

Tags: ,

I have a rewite rule that sometimes errors out if there is a Null value.

http://www.website.com/OpenWebsite/Link_From_ID/Client_Acount//Link_To_ID/Open.html

that converts to:

RewriteRule ^OpenWebsite/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)/Open.html?(.*)$ /OpenWebsite.php?N=Open&EID=$1&Account=$2&ClientID=$3&URL=$4&%{QUERY_STRING}

If there is a section missing, it give me "Not found"

In the example above, the ClientID is missing.

Is there something to replace ([A-Za-z0-9_-]+) that allows for NULL.

Also, could we not just make it a wildcard... as in even if its not A-z or 0-9 or -?

ThanksStart Free Trial
[+][-]05.14.2008 at 01:15AM PDT, ID: 21562010

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 08:53AM PDT, ID: 21565526

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 08:55AM PDT, ID: 21565546

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 09:16AM PDT, ID: 21565753

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 09:17AM PDT, ID: 21565769

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 09:23AM PDT, ID: 21565847

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 09:54AM PDT, ID: 21566223

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 09:55AM PDT, ID: 21566234

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 10:06AM PDT, ID: 21566351

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 04:52PM PDT, ID: 21569640

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 11:50PM PDT, ID: 21571120

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:39AM PDT, ID: 21572092

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 04:03AM PDT, ID: 21572233

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.18.2008 at 01:09AM PDT, ID: 21591908

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 07:29AM PDT, ID: 21652156

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628