为什么 Dreamweaver 站点中的大部分文件都被放入名为“upload”的目录中?
我通过直接编辑 CSS 清理了某人的 Dreamweaver 站点样式表,现在秘书在使用她的旧模板时遇到了问题。
她网站中的大多数文件都位于“上传”目录的子目录中。例如,我希望看到样式表 ../assets/css/等 但事实上我发现它在 ../upload/assets/css/ 等。
除了资产之外,我还发现模板和图像作为“upload”的子目录。
你知道为什么使用这个“上传”目录吗?
我正在考虑两种可能的方法。
(1) 确保所需的所有内容都在 ../upload/ 中,并删除直接位于根目录中的子目录
(2) 编辑模板以删除对 ../upload/ 的所有引用
请注意,(2) 对我很有吸引力,因为文件结构会更简单;但我想知道客户的 Dreamweaver 中是否有某种扩展,导致她 ftp 的所有内容都被放入“上传”目录中。
请注意,到目前为止,我已将清理后的 css 文件复制到 ../upload/assets/ 作为短期解决方案。但他们希望将来能够自行更改模板并添加新页面。
谢谢。
I cleaned up someone's style sheet for a Dreamweaver site, by editing the css directly, and now the secretary is having trouble using her old template.
Most of the files in her site reside in subdirectories of the 'upload' directory. For example, I would have expected to see the stylesheet in
../assets/css/ etc.
but in fact I'm finding it in
../upload/assets/css/ etc.
In addition to assets, I am also finding Templates and images as subdirectories of 'upload'.
Do you know why this 'upload' directory was used?
I am considering two possible approaches.
(1) Make sure everything needed is in ../upload/ and remove the subdirectories that are directly in the root directory
(2) Edit the template to remove all references to ../upload/
Note that (2) appeals to me because the file structure will be simpler; but I wonder if the client has some sort of extension in her Dreamweaver that causes everything she ftp's to be put into the 'upload' directory.
Note that so far I have copied my cleaned up css file over to ../upload/assets/ as a short-term solution. But they want to be able to make changes to their template, and add new pages, on their own in future.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能的问题是她如何指定 FTP 远程设置。它现在似乎指向上传文件夹而不是网络根目录。或者,她的 FTP 用户帐户可能与上传文件夹而不是 Web 根目录绑定。
The likely problem is how she has her FTP remote settings specified. It appears that it now points to the upload folder rather than the web root. Or, it could be that her FTP user account is tied to the upload folder rather than the web root.