Urgent Mod_Rewrite Help

Discussion in 'Apache' started by farhang, Jun 24, 2009.

  1. #1
    I am using wordpress and have pages for each state as well and a small script which loads information for each city so the urls are like this

    http://site.com/states/louisiana/?city=Shreveport

    Stats = Page
    Lousiana = SubPage

    Can anyone help me how to turn this into

    http://site.com/states/louisiana/Shreveport

    My current .htaccess file is

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    Code (markup):
     
    farhang, Jun 24, 2009 IP