Apache 禁用mod_重写时,将用户重定向到自定义错误页

Apache 禁用mod_重写时,将用户重定向到自定义错误页,apache,.htaccess,redirect,mod-rewrite,Apache,.htaccess,Redirect,Mod Rewrite,我正在将所有请求重定向到index.php?q=。。使用htaccess文件。但是,为了使其工作,用户需要为apache启用mod_rewrite。如果用户没有启用mod_rewrite功能(因为我显然无法使用mod_rewrite功能),我如何将用户链接到自定义错误页面? ErrorDocument 403您的自定义错误页面.php ErrorDocument 403您的自定义错误页面.php <IfModule !mod_rewrite.c> ErrorDocumen

我正在将所有请求重定向到index.php?q=。。使用htaccess文件。但是,为了使其工作,用户需要为apache启用mod_rewrite。如果用户没有启用mod_rewrite功能(因为我显然无法使用mod_rewrite功能),我如何将用户链接到自定义错误页面?


ErrorDocument 403您的自定义错误页面.php

ErrorDocument 403您的自定义错误页面.php
<IfModule !mod_rewrite.c>
    ErrorDocument 403 your_custom_error_page.php
</IfModule>