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

查看:309
本文介绍了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天全站免登陆