The front page redirect module for Drupal 7 redirects visitors that arrive on the front page of your site to the page that is defined as the default front page.
Introduction
Drupal 7 allows you to define what content to serve on the home page. However, Drupal does not redirect visitors to that page but instead just serves the content of that page on the front page.
This might lead to some problems:
- Same content under different URLs (/ and /{site_frontpage}).
- Different content under the same URL, e.g. when using different front pages for different languages.
- The previous point may lead to #339958: Cached pages returned in wrong language when browser language used.
- No possibility to pack keywords in the URL of your front page.
To alleviate these problems, this module really redirects visitors that arrive at the front page to the page that is defined as front page. It does so using a 301 (Moved Permanently) status code.
Targeted use
This module is typically targeted at:
- multilingual sites
- that have a different homepage per language (i18n_variable module from i18n)
- and use the browser settings to detect the language (locale module from core).
Configuration and usage
There is no separate configuration for this module. This modules uses the configuration as set in field "Default front page" on the "Site information" page (admin/config/system/site-information).
If you want a different front page per language, install the i18n project (http://drupal.org/project/i18n) and enable the "Variable translation" (i18n_variable) sub module. On the "Multilingual settings variables" page (admin/config/regional/i18n/variable) you have to check the "Default front page" checkbox and save your settings.
Then go back to the "Site information" page and you will see that there is a fieldset at the top of the page telling you "There are multilingual variables in this form." Select the language you want to define the front page for and fill it in the "Default front page" field.
Note: possible clash with Global Redirect
If you also have installed the global redirect module, then ensure that you uncheck the option "Frontpage Redirect Handler" as that option does the exact opposite of this module and thus will lead to an infinite redirect loop.
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Multilingual, Administration tools
5 sites report using this module
- Created by fietserwin on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
