Trying to get a clue why page rewriting doesn't work