I'm trying to make it so the following link:


will be instead re-written to:


The existing .htaccess file I have is below. This strips out the .php extension and resolves the http/www URL issue. This works fine.


Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %{HTTP_HOST} ^somesite.com
RewriteRule (.*) http://www.somesite.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.somesite.com/ [R=301,L]

RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
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:


RewriteRule ^/city/([0-9]+)\ /www.somesite.com/city=$1

Does anyone have any thoughts as to why this isn't working?