hacker Posted November 16, 2011 Share Posted November 16, 2011 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 More sharing options...
Larry Posted November 16, 2011 Share Posted November 16, 2011 The top one is correct. Thanks for pointing that out. And we're including the hyphens to allow for hyphens in the names. Link to comment Share on other sites More sharing options...
hacker Posted November 16, 2011 Author Share Posted November 16, 2011 The top one is correct. Thanks for pointing that out. And we're including the hyphens to allow for hyphens in the names. Larry, Thanks for the reply. I was hoping the reasoning was that simple. Hacker Link to comment Share on other sites More sharing options...
Recommended Posts