在.htaccess
我的根目录中是
Order deny,allow
Deny from all
ErrorDocument 404 /error/index.html
而error/
在.htaccess
是
Order deny,allow
Allow from all
当我error/index.html
在浏览器中打开时,通常一切都很好,但是在 404 重定向后打开时,除非我将它们指定为绝对路径,否则图像不会加载。我认为即使该文件是/error/index.html
,它也在重定向用户的目录中运行,该目录不包含所需的图像文件(位于error/
)。有没有办法使用相对于ErrorDocument
后.htaccess
重定向的路径?