Remove extension from url with exception