RewriteRule ^([A-Za-z0-9-]+)-([A-Za-z0-9-]+)-([A-Za-z0-9-]+)-([A-Za-z0-9-]+)-([A-Za-z0-9-]+)/?.html$ nhl.php?cty=$1&t=$2&w=$3&l=$4&d=$5 [L]
this produces /montreal-canadians-1-2-dateexample.html <--ok works fine..
but when its /toronto-maple%20leafs-1-4-dateexample.html
or
/los%20angeles-kings-1-5-dateexample.html
anyone know how to correctly code for the %20 to be - hypens also.
I tried all kinds of variations and it usually comes up page unfound.
str_replace works to add in the hyphens between maple-leafs and los-angeles
after myphp code
/toronto-maple-leafs-1-4-dateexample.html
/los-angeles-kings-1-5-dateexample.html
but the modrewrite code above doesnt know how to handle it when not all teams or citys are two words.... and then returns a page unfound, i think this is where im missing a key part..
anyone run into this? I searched the whole forum and nothing.
thanks!