Handled path parameter scenario for rewriting url