I wish to use mode rewrite to show the next: mydomain.com/Florida/Polk/ rather than mydomain.com/place.php?condition=Florida&city=Polk

I have akready carried this out: (since It might really make a difference!) mydomain.com/[title].html rather than mydomain.com/profile?user=[title]

This is actually the code!

Options +FollowSymLinks  
Options +Indexes 
RewriteEngine On 

RewriteBase /  
RewriteCond %{SCRIPT_FILENAME}! !-f  
RewriteCond %{SCRIPT_FILENAME}! !-d  
RewriteRule (.*).html profile.php?user=$1 [QSA.L]

You need to build your designs as specific as you possibly can. So try these rules:

# stop rewriting process if request can be mapped to file or directory
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# get user pages
RewriteRule ^([^/]+)\.html$ profile.php?user=$1 [L,QSA]

# get paces
RewriteRule ^([^/]+)/([^/]+)/$ place.php?state=$1&city=$2 [L,QSA]

Here' use [^/]+ (a number of arbitrary figures except /). But when you simply want to allow specific figures, you need to reflect that inside your designs (see for instance webdestroya’s proposal).

And you ought to also make certain that you employ unambiguous URIs. You need to create a well-wrought URI structure before considering rules. You realize, Cool URIs don’t change.


RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)/ place.php?state=$1&city=$2 [L,QSA]

i put Gumbo's version and everything works fine however i sometime the consumer chooses a condition prior to the city and at this time domain.com/Florida/Polk works but domain.com/Floria does not work!