PHP 站点作为 Drupal 安装中的子文件夹
我有一个与其他非 Drupal 站点共享托管的 Drupal 站点。当然有主域和子文件夹。
我最近将 drupal 站点移至主域,因此所有其他非 drupal 站点都作为子文件夹。
然而,由于我已经这样做了,所以其他非 Drupal 站点都没有显示。
但是,当我禁用 .htaccess 文件时,会显示非 drupal 站点,但主域上的 drupal 站点开始出现问题。
有谁知道这个 .htaccess 文件的修复程序以允许非 drupal 站点成为 drupal 站点的子文件夹?
I have a drupal site that was on shared hosting with other non-drupal sites. Of course there's a primary domain and subfolders.
I recently moved the drupal site to be the primary domain, so all the other non-drupal sites are as subfolders.
Since I've done this however, none of the other non-drupal sites is displaying.
But when I disable the .htaccess file, the non-drupal sites display, but the drupal site on the primary domain begins to have issues.
Does anyone know the fix for this .htaccess file to allow non-drupal sites to be subfolders of a drupal site?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Drupal 手册中有一个关于配置 .htaccess 以忽略某些子文件夹的条目。也就是说,给定两个子文件夹
/folder1/
和/folder2/
,您需要在RewriteEngine On
之后立即添加以下内容:The Drupal Handbook has an entry about configuring .htaccess to ignore certain subfolders. Namely, given two subfolders
/folder1/
and/folder2/
, you'd add the following immediately afterRewriteEngine On
: