Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经创建了 git 存储库并使用 git add -A 添加了所有内容......我已经提交并推送了内容......但是当我在服务器中克隆存储库时,该站点无法正常工作!
例如,我有 index.html 页面,但任何重定向(朝向属于该站点的其他 html 页面)都不起作用..任何想法?
谢谢
通过复制服务器中已经存在的另一个站点的文件 .htaccess 解决了问题!
这是一个痛苦的解决方案!这是我唯一可以做的吗?
.htaccess 对于漂亮的 url 是必需的
生成漂亮 URL 所需的 .htaccess 文件就是这样一个不可见的文件。所以我们需要确保也复制它。
您必须禁用 url 重写site/config/config.php
site/config/config.php