PHP 站点作为 Drupal 安装中的子文件夹

发布于 2024-09-18 12:38:01 字数 281 浏览 3 评论 0原文

我有一个与其他非 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

向日葵 2024-09-25 12:38:01

Drupal 手册中有一个关于配置 .htaccess 以忽略某些子文件夹的条目。也就是说,给定两个子文件夹 /folder1//folder2/,您需要在 RewriteEngine On 之后立即添加以下内容:

RewriteCond %{REQUEST_URI} "/folder1/" [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L]

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 after RewriteEngine On:

RewriteCond %{REQUEST_URI} "/folder1/" [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文