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/city-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
This page, however, works without the trailing slash (just like i'd like the other one to do...the one above). Looks like: example DOT com/zipcode-houses/88888Code:RewriteRule ^([A-Za-z0-9\-+\(\)#%|_,]+-test-page)([A-Za-z0-9\-/+_\(\)]+)$ /file.php?city=$1&query=$2 [L]
I tried toying with it for quite a while but can't seem to make and progress.Code:RewriteRule ^zipcode-houses/([A-Za-z0-9\-+\(\)#%|_,]+)/?(\d+)?$ /directory/zip-houses.php?zip=$1&page=$2 [L]
Any thoughts?