I'm not sure what I'm doing wrong here. I'm just trying to use the CSS
files in /css/
as a management point for the rest of the page and have tried "../../css/test1.css"
and "../css/test1.css"
for relative paths
in my link hrefs
but I can't get it to point from the subdomains
correctly without supplying the absolute paths (domain.com/css/test1.css, domain.com/css/test2.css, ect)
to the css
files. index.php
in the root displays correctly but the subdomains
do not. I'm guessing my relative path
syntax is wrong. Any help is appreciated. See image below for details. Thanks in advance.
子域的CSS文件的相对路径
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- dqk94069 2016-08-22 23:55关注
Almost for-sure your server is not configured to serve files for the subs from outside their own directory (each sub gets a view of only their little sandbox, not the whole server--this is a good thing for security reasons!). If you can, change your web server to have a /css path for the sub (syntax varies depending on web server).
Alternatively, you can try just creating a symlink (cd sub; ln -s ../css). That may or may not be allowed by your server config, though.
解决 无用评论 打赏 举报
悬赏问题
- ¥15 php 将rtmp协议转hls协议,无法播放
- ¥15 miniconda安装不了
- ¥20 python代码编写
- ¥20 使用MPI广播数据遇到阻塞
- ¥15 TinyMCE如何去掉自动弹出的“链接…”工具?
- ¥15 微信支付转账凭证,如何解决
- ¥15 在win10下使用指纹登录时,界面上的文字最后一个字产生换行现象
- ¥20 使用AT89C51微控制器和MAX7219驱动器来实现0到99秒的秒表计数,有开始和暂停以及复位功能,下面有仿真图,请根据仿真图来设计c语言程序
- ¥15 51单片机 双路ad同步采样
- ¥15 使用xdocreport 生成word