drfkl66684 2013-12-18 12:00
浏览 84
已采纳

服务器无法读取文件

I'm trying to create a new version of my website, in English.

Made a sub-domain for /en folder, ´en.artotek.fi´. It didn't read my ìndex.html at first, but index.php worked. The server's CP doesn't let me put file names (e.g index.html -> indexhtml).

I have style.css in the same folder, and properly linked, but it won't read it.

I've tried link href:

*public/html/css/style.css* and *style.css*

public
 ->
   html (index.html)
      ->
        en (index.html)

I'd really like it to have a subdomain, so I can't put it in the same folder with my main index.html.

Pardon if my question is too unclear.

Any solutions?

  • 写回答

1条回答 默认 最新

  • dongliao9233 2013-12-18 13:19
    关注

    I have just been to http://www.artotek.fi/en/ and can see that there is no style sheet being successfully called. If this is the right domain then I can see a major problem stopping the stylesheet from being successfully called:

    You currently have the following code

    <noscript>
        <link rel="stylesheet" href="skel-noscript.css" >
        <link rel="stylesheet" href="ftp://artotek@ftp.artotek.fi/public/html/css/style.css" >
        <link rel="stylesheet" href="ftp://artotek@ftp.artotek.fi/public/html/css/style-desktop.css" >
        <link rel="stylesheet" href="ftp://artotek@ftp.artotek.fi/public/html/css/noscript.css" >
        <link rel="stylesheet" href="ftp://artotek@ftp.artotek.fi/public/html/css/style-mobile.css" >
    </noscript>
    

    May I suggest firstly moving the <link> tag out of the <noscript> tag. Secondly, those URL's look a bit suspect. I dug around a bit and it looks to me like you want the following URL http://artotek.fi/css/style.css

    So... my final suggestion: replace the above block with this:

    <link type="text/css" rel="stylesheet" href="http://artotek.fi/css/style.css" >
    <link type="text/css" rel="stylesheet" href="http://artotek.fi/css/style-desktop.css" >
    <link type="text/css" rel="stylesheet" href="http://artotek.fi/css/noscript.css" >
    <link type="text/css" rel="stylesheet" href="http://artotek.fi/css/style-mobile.css" >
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程