Log of /contributions/modules/globalredirect/globalredirect.module
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.1.2.4.2.8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jul 3 14:09:34 2008 UTC
(16 months, 3 weeks ago)
by
njt1982
Branch:
DRUPAL-5
Changes since
1.1.2.4.2.7: +32 -5 lines
Diff to
previous 1.1.2.4.2.7
, to
branch point 1.1.2.4
Applied some fixes from a few issues in the queue including the need to check the script name is index.php so contrib modules doing a full bootstrap dont get cleaned up, a check for an empty so we dont interrupt forms, a permissions check to not redirect URL's to which the user does not have permission to access and finally a few tweaks to improve coding standards
Revision
1.3 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 14 16:26:37 2006 UTC
(3 years ago)
by
njt1982
Branch:
MAIN
Changes since
1.2: +28 -6 lines
Diff to
previous 1.2
Applied suggestions and patches to fix trailing slashes and frontpage problems. Works in Drupal 4.7.3 - untested in 4.7.4
Revision
1.1.2.1
Sat Oct 7 22:55:04 2006 UTC
(3 years, 1 month ago)
by
njt1982
Branch:
DRUPAL-4-7
Changes since
1.1: +0 -26 lines
FILE REMOVED
file globalredirect.module was added on branch DRUPAL-4-7 on 2006-10-07 23:20:42 +0000
Revision
1.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 7 22:55:04 2006 UTC
(3 years, 1 month ago)
by
njt1982
Branch:
MAIN
Branch point for:
DRUPAL-4-7
Description: Simple module which checks if the currently url has an alias set and does a 301 redirect to it does.
Reason: Once enabled, an alias provides a nice URL for a node. However it doesn't remove the old URL (eh node/1234). This is a problem as you now have two URL's representing precisely the same content. You're getting into dangerous territory for duplicate pages which can get you sandboxed by the likes of Google!
Solution: This module uses hook_init to interrupt the page load and do an alias lookup. If one exists, redirect off to iit - otherwise the page load may continue uninterrupted. An example of this in use is on the site it was developed for:
http://www.sportbusiness.com/node/160559
redirects to:
http://www.sportbusiness.com/news/160559/lagardere-sets-up-sports-division
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.