
December 28th, 2012, 07:19 PM
|
|
Contributing User
|
|
Join Date: Aug 2009
Posts: 49
Time spent in forums: 5 h 34 m 35 sec
Reputation Power: 4
|
|
|
Htaccess Question?
Hi Everyone,
I'm trying to figure out a way to add a / to my URLS.
For example,
The below URL is working
http://whatsmyowncarworth.com/nevada
The below URL does not work
http://whatsmyowncarworth.com/nevada/
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.
Code:
RewriteEngine On
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?
Thanks
|