I’m trying to make it so the following link:
[url]http://www.somesite.com?city=somecity
will be instead re-written to:
[url]http://www.somesite.com/somecity
The existing .htaccess file I have is below. This strips out the .php extension and resolves the http/www URL issue. This works fine.
[B][U]Existing
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %{HTTP_HOST} ^somesite.com
RewriteRule (.*)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.
RewriteRule ^index.[url]http://www.somesite.com/
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s([^.]+).
RewriteRule ^ %1 [R,L,NC]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [L]
And this is what I’m adding at the end but it does absolutely nothing:
[U][B]Addition
RewriteRule ^/city/([0-9]+) /www.somesite.com/city=$1
Does anyone have any thoughts as to why this isn’t working?