Trying to figure out why the page I'm creating works when I place a trailing slash but re-directs to a 404 when i take it off.
For example, this code 404's without trailing slash and works when it's like: example DOT com/item-test-page/
---note: when I take out the stuff relating to the query it works...aka- when i take out the "([A-Za-z0-9\-/+_\(\)]+)" and the "&query=$2"...the query obviously doesn't work but going to the page without the trailing slash works
RewriteRule ^([A-Za-z0-9\-+\(\)#%|_,]+-test-page)([A-Za-z0-9\-/+_\(\)]+)$ /file.php?item=$1&query=$2 [L]
The page/code below, however, works without the trailing slash (just like I'd like the other one to do...the one above). Looks like: example DOT com/zip-properties/55555
RewriteRule ^zip-properties/([A-Za-z0-9\-+\(\)#%|_,]+)/?(\d+)?$ /directory/zip-properties.php?zip=$1&page=$2 [L]
I tried toying with it for quite a while but can't seem to make and progress.
Any thoughts?