I need to rewrite url on my PHP website but I'm not sure about the syntax.
I want to redirect :
'some_url?id=1' => 'new_url/1'
And when user type this :
'new_url/1'
I want him to be backend redirect to :
'some_url?id=1'
UPDATE: My last try:
RewriteRule /site/?id=$1 /site/$1