如何从public_html文件夹外部链接css文件

问题描述

root  
    subdomain.example.com    
        index.PHP
    public_html    
    shared (folder)
        index.css

index.PHP - 内部 subdomain.example.com

<link href='../shared/index.css' rel='stylesheet'>

控制台

GET https://subdomain.example.com/shared/index.css net::ERR_ABORTED 404  

请注意控制台中给定的路径不是我在 link href='../shared... 中的路径

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)