Jump to content
Larry Ullman's Book Forums

Rewriterule Question


Recommended Posts

Larry,

 

In the RewriteRule for browse.php on page 176 we have (discrepancy indicated in red):

 

RewriteRule ^browse/([A-Za-z\+\-]+)/([A-Za-z\+\-]+)/([0-9]+)$ browse.php?type=$1&category=$2&id=$3

 

and on page 177 we have:

 

RewriteRule ^browse/([A-Za-z\+]+)/([A-Za-z\+\-]+)/([0-9]+)$ browse.php?type=$1&category=$2&id=$3

 

Which line of code is correct and why are we including the hyphen(s) indicated in red in the first place?

 

Thank you,

Hacker

Link to comment
Share on other sites

 Share

×
×
  • Create New...