Forum Moderators: phranque
here is what i have:
RewriteRule ^items/([A-Za-z0-9\-.,/+=&#;¦]+)/?$ detail.php?id=$4 [NC,NS,L]
thanks
[domain.com...]
however when "+" is in the variable (ie: ABC-123-00+) then the page url shows the "+" correctly (http://www.domain.com/items/ABC-123-00+) but the actual page sees the "+" as space instead of "+" so on the page, the item id will show up as "ABC-123-00 " and because of the space, the detail information about ABC-123-00+ wouldn't display the detail information about the item ABC-123-00+.
fyi, every other special characters only the "+" doesn't work.
please let me know if this explains the issue.
thanks
You can capture the actual output filepath in your script and print it on the page (as a test), or you can temporarily change your rule from internal rewrite to external redirect syntax, so that your browser will be redirected and show the rewritten URL in its address bar where you can examine it. The redirected URL will also show up in your raw server logs, where you can examine it more accurately, since the escaped characters will be shown as escaped characters (your browser will un-encode them before displaying the URL).
Jim