removing slashes from host name and permanent link