Permalink modification and some url translation