Global Redirect

The Global Redirect module allows you to remove trailing slashes / from URLs. It also checks to see if your Drupal site has clean URLs enabled and, if so, will prevent unclean URLs from ever being accessed. You can do a lot more with this module and all of the details are listed on its Drupal project page here: project/globalredirect.

The module also redirects any specific node/ID page to its alias if an alias exists. This is important, as your site will get requests by visitors for duplicate nodes or pages. Some people will visit your node/12 page and others may visit it by its alias name. This module makes sure they can only load your node through its corresponding alias. This helps with performance and also makes sure you're not getting slammed by search engine bots. We already installed Global Redirect in the last chapter. Let's go to its settings page and see what we can configure. Go to Site configuration | Global Redirect. This will launch the configuration page.

Here you find the items you'll want to configure. First, make sure that you have selected to enable the deslash. This will remove all trailing / from URLs in your site. This will help to prevent duplicate node content from being loaded. One thing to consider is that if you do have a requirement for requests using a /, then you may need to leave this disabled. It will depend on your site requirements. Enable it for now.

Enable the Non-clean to Clean URL configuration. This will stop any requests loading a non-clean URL such as

Enable the Remove Trailing Zero Argument setting. This will help to trim your taxonomy URLs and prevent duplicate term URLs from loading when the URL refers to the same taxonomy term. For example, if you have a URL /taxonomy/term/1 and this term can also be loaded by going to /taxonomy/term/1/0, then enabling this functionality will trim the /0 from the URL and load the default depth of the term which is the /taxonomy/term/1.

Enable Menu Access Checking, as this will help to prevent your anonymous users or authenticated users who do not have permissions from trying to load admin content through admin URLs.

Also enable Case Sensitive URL Checking. This will make sure the user is always directed to the correct URL in your site based on specific characters in the URL.

Once you have configured the module settings, click on the Save configuration button.


If enabled., this option Mill remove the trailing slash from requests. This stops requests such as exairple.coWnode/y failing to match the corresponding alias and can cause duplicate content. On the other handj if you require certain requests to have a trailing slash., this feature can cause problems so may need to be disabled,

Non-clean to Clean:

If enabled, this option will redirect from non-dean to clean URL (if Clean URL's are enabled), This will stop, for example, node 1 existing on both txa^u.coWn»d«/i AND Remove Trailing Zero Argument:

O Disabled

O Enabled for taxonomy term pages only 0 Enabled for all pages

If enabled, any instance of 70" will be trimmed from the right of the URL. This stops duplicate pages such as "taxonomy/term/1" and "taxonomy/term/1/0" where 0 is the default depth. There is an option of limiting this feature to taxonomy term pages ONLY or allowing it to effect any page. By default this feature is disabled to avoid any unexpected behaviour

Menu Access Checking:

O Disabled ® Enabled

If enabled, the module will check the user has access to the page before redirecting. This helps to stop redirection on protected pages and avoids giving away secret URL's. By default this feature is disabled to avoid any unexpected behaviour

Case Sensitive URL Checking:

O Disabled ® Enabled

If enabled, the module will compae the current URL to the alias stored in the system, If there are any differences in case then the user will be redirected to the correct URL, [ Save configuration J [ Reset to defaults ]

The Free SEO Report

The Free SEO Report

The Internet has been growing at such a rapid pace, it is now next to impossible for people to find your websites in the Search Engines unless you really know what you are doing. You're not going to be able to do a thing with Search Engines unless you have a little information to get you started and learn a few tricks of the trade. This report will help you do just that!

Get My Free Ebook

Post a comment