简体   繁体   English

域更改后未加载CSS样式表

[英]CSS Stylesheet(s) not loading after a domain change

We recently transferred to a new off site hosted website. 我们最近转移到了新的异地托管网站。 Due to needing to access our old site still we created an internal access only sub-domain, (ex. http://oldsite.domain.com ). 由于仍需要访问我们的旧站点,我们创建了一个内部访问专用子域(例如http://oldsite.domain.com )。 The style sheets are relative paths and they worked flawlessly when we were still using http://www.domain.com . 样式表是相对路径,当我们仍在使用http://www.domain.com时,它们可以完美工作。

Now under the oldsite sub-domain the CSS stylesheets will not load, or even at times randomly load partially. 现在,在oldsite子域下,CSS样式表将不会加载,甚至有时会部分随机加载。

Has anyone experienced this issue? 有人遇到过这个问题吗? If so can anyone assist in locating some steps for troubleshooting or even resolution? 如果是这样,谁能协助您确定一些步骤来进行故障排除甚至解决? I've been researching this for over a week now with little luck finding how a domain change could effect the relative path css stylesheets. 我已经研究了一个多星期,但运气不佳,发现域更改如何影响相对路径CSS样式表。

Sounds like an issue with your .htaccess file. 听起来像.htaccess文件有问题。 Make sure to update .htaccess with directories or anything if it has been changed. 确保使用目录或任何已更改的内容更新.htaccess。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM