【发布时间】:2021-04-23 15:35:02
【问题描述】:
我有一个 drupal 7 网站(不是我建立的),其页面由 1 种特定的自定义内容类型(我们称之为自定义内容)组成。所以我的页面是这样的:
Url: site/very_seo_friendly.url
Page
\- header
\- sidebar
\- 1 or many items of custom-content
\- footer
不幸的是,该网站还允许页面显示为这样(例如在编辑后):
Url: site/custom-content/custom-content-title <- also indexed by search engines
Page
\- header
\- Related content sidebar with all custom-content items listed
\- 1 specific custom-content item
\- footer
当我添加新的自定义内容时,我需要选择该自定义内容属于哪个页面。有没有办法阻止 drupal 单独显示该自定义内容项?我可以进行网络服务器重定向以阻止这些 url,但如果它们根本不存在会更好。
谢谢。
【问题讨论】:
标签: drupal-7