`
kakashishi
  • 浏览: 9114 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

apache 404 file not found 重定向自定义的办法ErrorDocument 404

阅读更多

在网站根目录下建个.htaccess
加入404地址:ErrorDocument 404 /missing.html

如上,missing.html就是你的404自定义页面,你只需要编辑根目录下的missing.html就可以了。

分享到:
评论

相关推荐

    详细介绍通过配置Apache实现404页面替换

    详细介绍通过配置Apache实现404页面替换 一、通用情况–修改apache配置....打开.htaccess文件,添加代码:ErrorDocument 404 /notfound.php(注意:404和/之间有空格),然后将.htaccess文件上传到网站根目录。如

    APACHE 自定义404错误页面设置方法

     errorDocument 404 /404.php 1.这个的内容根据你的情况改写 。可是有时候当你用IE浏览的时候会发现,这玩意压根就不跳转,关键的地方就是这个html,如果404.html的小于512字节的话,那么IE会认为这个错误页面不够...

    apache-custom-error-page:apache的自定义错误页面

    apache自定义错误页面 针对Apache Web服务器的自定义错误页面模板(针对移动设备进行了优化,CSS3) 指示 将所有文件复制到服务器的根目录 将这些行添加到您的.htaccess文件中: #Custom Error pages ...

    ThinkPHP访问不存在的模块跳转到404页面的方法

    <?... class EmptyAction extends Action{ function _empty(){ ...使用apache服务器的情况下需在apache中的网站配置中加入 ErrorDocument 404 /404.html 即可。 使用iis服务器的情况下需在iis中的IIS/ASP.net下设置4

    404错误页面

    为Apache Server设置404错误页面的方法很简单,只需在.htaccess 文件中加入如下内容即可,ErrorDocument 404 /notfound.php 下面给是我找的一些404页面提供大家下载。这些404页面下载后请修该里面的跳转网址就可以...

    .htaccess

    举例来说,如果我的根目录下有一个nofound.html文件,我想使用它作为404 error的页面: <br>ErrorDocument 404 /notfound.html<br>If the file is not in the root directory of your site, you just need to...

    万网独享主机Apache为Ecshop商城添加404页面的方法详解

    相关信息: 万网独享主机/Linux操作系统/Apache/Ecshop商城/404页面设置,同样在win7系统/Apache上面也测试通过 一种问题解决方法: 1、首先在Apache的conf目录下面配置httpd.conf文件,找到#ErrorDocument 404 /...

    PHP header()函数使用详细(301、404等错误设置)

    如果您刚刚开始学习PHP,可能... 针对apache配置中的ErrorDocument 404 /404.php功能,把nginx配置中的 复制代码 代码如下: error_page 404 /404.php; 改成 复制代码 代码如下: error_page 404 = /404.php; php heager

    apache 采用C语言的模块开发

    我在改造APACHE服务器授权访问时,需要对不合法的客户端请求进行过滤。对不合法请求需要立即发送一个错误提示页面给客户端。 发送错误提示页面的程序片断如下: //非法请求作错误跳转 char *location...

    21个常用的apache .htaccess文件配置技巧分享

    Apache Web 服务器可以通过 .htaccess 文件来操作各种信息,这是一个目录级配置文件的默认名称,允许去中央化的 Web 服务器配置管理。可用来重写服务器的全局配置。该文件的目的就是为了允许单独目录的访问控制配置...

    linux .htaccess 设置 404 等错误页面

    ErrorDocument 404 /index.php ErrorDocument 500 /index.php 您可能感兴趣的文章:linux系统下部署项目访问报404错误的解决方法

    .httacces文件的配置技巧

    1.配置.htaccess 自定义错误页 我要介绍的.... 你所知道的任何页面错误代码(像404找不到页面),都可以通过在.htaccess文件里加入下面的文字将其变成自定义页面: ErrorDocument errornumber /file.html 举

    pro_apache_third_edition..pdf

    Apache and the Internet..............................................1 Apache: The Anatomy of a Web Server.........................................................1 The Apache Source ....................

    apache urlrewrite防盗链功能配置

    DocumentRoot /home/img ServerName img.host.com ErrorDocument 404 / RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://img.host.com/.*$ [NC] RewriteCond %{...

    XAMPP启用局域网访问.doc

    用apache friend提供的XAMPP在windows平台作apache服务器的确方便而又快捷,但基于安全的原 因,默认的时候是无法再局域网的其他机器上访问设置界面的。那么怎样启用局域网访 问有能保证其安全呢? 你需要对httpd-...

    htaccess-banip:Apache htaccess禁止IP地址脚本

    Apache htaccess禁止IP脚本一定数量的失败登录后(401错误),该脚本将阻止Apache .htaccess文件中的IP地址。安装只需将复制的banip文件夹复制到您的webroot中,并将以下行添加到您的.htaccess文件中: ...

    destoon之URL Rewrite(伪静态)设置方法详解

    1、如果您的服务器支持.htaccess,则无需...ErrorDocument 404 /404.php RewriteEngine On RewriteBase / RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php RewriteRule ^(.*)/file/(.*)\.ph

    计算机网络教程书

    它们包括AddEncoding AddLanguage AddType DEfaultType ErrorDocument LanguagePriority 3 Indexes 允许使用目录控制类型的指令。它们包括 AddDescription AddIcon AddIconByEncoding AddIconByType DefaultIcon ...

    Python库 | ErrorDocument-0.2.1.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:ErrorDocument-0.2.1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    淘宝帝国 淘宝客 6.3最新版本

    淘宝帝国 淘宝客 6.3最新版本# Helicon ISAPI_Rewrite configuration file # Version 3.1.0.56 # addhandler x-httpd-php-cgi .php4 # addhandler x-httpd-php5-cgi .php5 # addhandler x-httpd-php5-cgi .php ...

Global site tag (gtag.js) - Google Analytics