I don't know how to make a rewrite condition to obtain the right behaviour.
This is the link i have:
http://www.example.com/variable/Known/Uri/ecc
or
http://www.example.com/variable
I'd like to ignore the "variable" part and consider only the rest of the uri. I will consider "variable" only when reading $_SERVER["REQUEST_URI"].