In the first case, it is better to employ URL mapping or URL redirection by returning a 301 Moved Permanently response, which can be configured in most server configuration files, or through URL rewriting; in the second case, a 410 Gone should be returned.
在第一种情况下，最好通过返回301 Moved Permanently响应进行URL映射或URL重定向，该响应可以在大多数服务器配置文件中配置，或者通过URL重写 ；在第二种情况下，应返回410 Gone。