December 28th, 2012, 08:19 PM
Join Date: Aug 2009
Time spent in forums: 5 h 34 m 35 sec
Reputation Power: 5
I'm trying to figure out a way to add a / to my URLS.
The below URL is working
The below URL does not work
My goal is to get have the / at the end of URL so it will work. Also, if someone types in the URL without any / I would want the URL to work as well.
Below is my htaccess.
RewriteRule ^([_a-zA-Z_]+)$ state.php?state=$1 [L]
RewriteRule ^([_a-zA-Z_]+)/([_a-zA-Z_]+)$ city.php?state=$1&city=$2 [L]
ErrorDocument 404 /cool404.php
How would I append the / to the end of the URL and have both URLS working?