create pretty url for post. Also prevent access to admins functionality for usual readers