Fixing URLs to add posts and pages