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: http://drupal.org/ 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 variantcube.com/fire?q=node/1.
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 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 ]
Was this article helpful?
Inside of this special report, you'll discover... The guaranteed, bullet-proof method for ensuring that you NEVER lose rankings again. How to recover from the latest search engine update and reclaim your traffic, instantly. Find out how you can instantly maximize traffic and exposure with social signals. How you can create drop dead easy micro-sites that will bolster your ranking almost immediately and much, much more.