wordpress - 同一站点上的 Drupal 和 wordpress

标签 wordpress drupal .htaccess

我在我的域的根目录中直接安装了一个 Drupal,并启用了干净的 url。
我还有一个安装了 wordpress 的子目录。/博客/
我还有一个包含 php 脚本的子目录/utilities/

当我输入“http://www.domain.com/blog/a-post/ ”时,我收到来自 Drupal 的 404 错误,告诉我该页面不存在。与“http://www.domain.com/utilities/pig/”相同

我知道这与“.htaccess”文件有关。这是我在 Drupal 中打开“clean urls”时创建的。

我正在寻找有关如何设置 .htaccess 文件或代码片段的信息,我可以用它来告诉 Drupal 忽略这两个目录。

最佳答案

如果添加

RewriteCond %{REQUEST_URI} !^/blog/.*$
RewriteCond %{REQUEST_URI} !^/utilities/.*$

以下
RewriteCond %{REQUEST_URI} !=/favicon.ico

你应该没事。

关于wordpress - 同一站点上的 Drupal 和 wordpress,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2724236/

相关文章:

php - 使用 .htaccess 设置位于同一文件夹中的 404 错误文档

wordpress - 可以使用高级自定义字段构建整个网站吗?

regex - 更新后 Wordpress 自定义 URL 重写中断

php - 如何在drupal 7中包含php文件

php - Laravel 网站上传 cPanel 错误

php - 在特殊的 Query_string 上重定向 .htaccess

php - WordPress WooCommerce - 为客户打印发票 - 访问被拒绝

mysql - 查询了两张MySQL表;无法显示某些结果?

drupal - 多少用户足以给Web应用程序带来沉重的负载

css - Drupal 主题 : Best to build a theme from scratch or use Genesis (or similar) as a foundation?