我使用 PHP、HTML、Javascript 等构建一个网站。但是,我希望能够轻松地编辑该网站并使其非常有吸引力。因此,我很想用 squarespace 或 wix 来构建它。有没有办法让域的主页用 squarespace 构建,而所有其他页面都是自定义代码?谢谢你们!
最佳答案
如果尝试在任一平台和平台的页面构建工具中构建“自定义”页面(通过 PHP、HTML 和 JS),答案是否定的,这是不可能的。
来自Squarespace :
Squarespace doesn’t support server-side code, including PHP, Ruby, Ruby on Rails, and SQL.
来自Wix :
Wix Code, which uses Javascript, also allows the use of Java Script Libraries when using the HTML element. It is not possible to add PHP code to your Wix site.
有可以开发static pages通过开发者模式在 Squarespace 平台上运行,但这不支持 PHP,仅支持 HTML、JSON-T、CSS、JS。
其他理论上的解决方法可能包括使用 iframe、AJAX 和/或代理服务器/服务,但可能过于复杂或不易维护,或者表现不佳。
关于web-hosting - 我可以在 squarespace 中构建主页并为同一域上的网站其余部分提供自定义代码吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54702596/