December 28th, 2012, 08:19 PM
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.
How would I append the / to the end of the URL and have both URLS working?
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
December 28th, 2012, 08:54 PM
3 seconds on google and i have your answer....
check out this page, looks like it is what you want