Drupal 7 系统通过规则模块重定向 [英] Drupal 7 system redirect through rules module

查看:30
本文介绍了Drupal 7 系统通过规则模块重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人能够准确地阐明 Drupal 7 的规则模块在执行系统重定向时的作用.我创建了一个规则(通过 Drupal 7 中的规则模块),它在访问特定内容时执行重定向.该规则似乎没有生成 apache 重定向,并且规则模块没有指定它正在执行的重定向类型(301、302 等).归根结底,我担心的是在搜索引擎的伪装方面遇到麻烦.

I hope someone might be able to clarify exactly what the rules module for Drupal 7 does when it executes a system redirect. I've created a rule (through the rules module in Drupal 7) which executes a redirect whenever specific content is accessed. The rule does not appear to be generating an apache redirect, and the rules module does not specify the type of redirect it is executing (301, 302, etc). Ultimately, my concern is getting in trouble with search engines for cloaking.

提前感谢您提供的任何澄清!

Thank you in advance for any clarification provided!

推荐答案

它将使用 drupal_goto()

将用户转到不同的 Drupal 页面.这会发出现场 HTTP 重定向.该函数确保重定向的 URL 格式正确.

Sends the user to a different Drupal page. This issues an on-site HTTP redirect. The function makes sure the redirected URL is formatted correctly.

规则模块在 rules_page_rebuild().

这篇关于Drupal 7 系统通过规则模块重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆