Hi, I was wondering if someone could please help me with this rewrite rule below. I want to make the following rewrite: domain.com/city/FL/Miami.html to domain.com/FL/Miami.html I am really just trying to hide the "city" in the url. Thanks!
Well, basically you can do something like this for that specific state/city: RewriteRule ^FL/Miami.html$ /city/FL/Miami.html [L] Code (markup): Or something that would cover all the cities in FL state: RewriteRule ^FL/([^/]+).html$ /city/FL/$1.html [L] Code (markup): So the full rewrite code would be: RewriteEngine On RewriteBase / RewriteRule ^FL/([^/]+).html$ /city/FL/$1.html [L] Code (markup): Put it in your .htaccess file in your main/root html folder.