Fixing relative paths and permalink structure.