This could be the quickest $20 if i can get this shit to work.
I've spent too much time trying so I'm fucking done with it..
I have a Wordpress site and this is your standard rewrite rule for WP
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
The work I need is as follows...
Below are examples of the query string in the URLs I have...
http://www.mysite.com/sell.php
(lists all of the states)
http://www.mysite.com/sell.php?state=CO
(lists all of the cities in the state)
http://www.mysite.com/sell.php?state=IA&city=Dubuque
(final LP with the state and city variables passed)
I need the URLs to read
http://www.mysite.com/sell < - root url
http://www.mysite.com/sell/ST
http://www.mysite.com/sell/ST/City
where ST = State (abbreviations) and City is the city of course.
This is as far as I got
#RewriteEngine On
#RewriteBase /
#RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)$ sell.php?state=$1&city=$2 [L]
I can't get it to work... and I don't know why (whether it conflicting with the other WP shit or what)
I've spent too much time trying so I'm fucking done with it..
I have a Wordpress site and this is your standard rewrite rule for WP
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
The work I need is as follows...
Below are examples of the query string in the URLs I have...
http://www.mysite.com/sell.php
(lists all of the states)
http://www.mysite.com/sell.php?state=CO
(lists all of the cities in the state)
http://www.mysite.com/sell.php?state=IA&city=Dubuque
(final LP with the state and city variables passed)
I need the URLs to read
http://www.mysite.com/sell < - root url
http://www.mysite.com/sell/ST
http://www.mysite.com/sell/ST/City
where ST = State (abbreviations) and City is the city of course.
This is as far as I got
#RewriteEngine On
#RewriteBase /
#RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)$ sell.php?state=$1&city=$2 [L]
I can't get it to work... and I don't know why (whether it conflicting with the other WP shit or what)