URL rewritting

Some url rewritting features