我可以在
时重定向.htaccess重定向这是可能的吗?如果是这样,有人可以帮我改写重写规则吗?
修改
试图
ErrorDocument 500 /oohps.php
ErrorDocument 404 /where.php
并在domain.com/oops.php和domain.com/where.php添加它们但仍未加载
答案 0 :(得分:1)
为什么不通过ErrorDocument
使用自定义错误回复?
ErrorDocument 500 /errors/internal-server-error.html
ErrorDocument 404 /errors/not-found.html
答案 1 :(得分:1)
通过修改/etc/apache2/conf.d/localized-error-pages文件中的“ErrorDocument”,我能够在404错误(找不到页面)上重定向到索引页面。
感谢.....