I have a ReWrite rule in my .htaccess file right now:
RewriteRule ^item/?([a-zA-Z0-9_]+)?/?([a-zA-Z0-9_]+)?/?$ static/items.php?a=$1&b=$2 [NC,L]
It will pick any items that have an underscore:
item/new_item/new_order
However, I need to change from underscore to dashes to make it:
item/new-item/new-order
If I simply make a change in RewriteRule string it breaks it. Not sure how to fix that.
RewriteRule ^item/?([a-zA-Z0-9-]+)?/?([a-zA-Z0-9-]+)?/?$ static/items.php?a=$1&b=$2 [NC,L]