假设有个网页https://www.example.com/index.html或者https://www.example.com/index.php。如果我们想要隐藏.html后缀或者.php后缀,那么就可以利用到.htaccess文件。由于Apache和Nginx的.htaccess语法不同,这里提供2种方法。假设有个网页https://www.example.com/index.html或者https:
假设有个网页https://www.example.com/index.html或者https://www.example.com/index.php。如果我们想要隐藏.html后缀或者.php后缀,那么就可以利用到.htaccess文件。由于Apache和Nginx的.htaccess语法不同,这里提供2种方法。假设有个网页https://www.example.com/index.html或者https: