Hi Everyone,

I'm trying to figure out how to rewrite a URL. I've looked at a few sitepoint topics about this subject matter but I'm having a hard time trying to figure it out on my own.

I want to take the below URL
http://whatsmyowncarworth.com/state....rhode%20island

and

make it look like this
http://whatsmyowncarworth.com/rhode-island

I've written the below code in my .htaccess but it's still not working. Any help would be appreciated.

I've tried all of the below syntax once but nothing is working. What am I doing wrong? Thanks everyone!

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)/(.*)/$ /state.php?param1=$1
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)/(.*)/$ state.php?param1=$1
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)/(.*)/$ state.php?state=$1
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)/(.*)/$ /state.php?state=$1