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.htmlthat 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&EI
D=$1&Accou
nt=$2&Clie
ntID=$3&UR
L=$4&%{QUE
RY_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 -?
Thanks
Start Free Trial