Categories


Tags


在Unix/Linux主机上设置301永久重定向的方法

在Unix/Linux主机上设置的方法可以用.htaccess文件1. Apache模块 mod_alias的 Redirect 和 RedirectMatch命令上面提到2个命令使用方法相似。而区别就是后者RedirectMatch基于正则表达式匹配对当前的URL发送一个外部重定向语法为:Redirect [status] URL-path URLRedirectMatch [status] r

Public @ 2016-01-08 16:09:39

Apache IIS/.net 制作404页面

Apache制作404页面: 1. 在网站根目录下创建一个名为“errors”的文件夹。 2. 在“errors”文件夹中创建一个名为“404.html”的文件,这将是你的404错误页面。 3. 在“404.html”文件中添加自定义内容,例如:您所寻找的页面不存在或已被删除。 4. 在httpd.conf文件中添加下面的代码: ``` ErrorDocument 404 /errors

Public @ 2023-06-04 16:50:19

更多您感兴趣的搜索

0.426743s