I have this wordpress say wpblogdummy.com. i want to be able to do something below thru .htaccess / mod_rewrite. Right now i have a url format like this: http://www.wpblogdummy.com/lawyers/?city=Auburndale http://www.wpblogdummy.com/lawyers/?city=Bartow http://www.wpblogdummy.com/lawyers/?city=Apopka where city is a $_GET variable. how do i change the .htaccess file so that it will look something like: http://www.wpblogdummy.com/lawyers/city/Auburndale http://www.wpblogdummy.com/lawyers/city/Bartow http://www.wpblogdummy.com/lawyers/city/Apopka NOTE: WORDPRESS IS MY PLATFORM. http://www.wpblogdummy.com/lawyers is a page. current rewrite rule is: Quick 7 bucks for the first come to come up with the right solution. You can PM me your post the solution here.
RewriteEngine On RewriteBase / RewriteRule ^lawyers/city/([a-zA-Z_]+)$ http://www.wpblogdummy.com/lawyers?city=$1 [L]
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^lawyers/city/([a-zA-Z_]+)$ /lawyers?city=$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
This one worked. Congratulations. There's a slight problem though. The URL turns ugly again when viewed on the address bar. If you can tell me what mod rewrite flag to put so it will turn ugly again that would be awesome. Anyway, send over your pp. Thanks.