Help us continue supporting you
You are updating your website, changing the names of page's filenames (ex: file.html to file.php) moving pages and so on. But what if you want to get rid of those old pages without having to worry about those who go to the old web page and see nothing? It doesnt end there either, other visitors do include major search engines such as MSN, Google and Yahoo! If people are finding your old pages when querying in these search engines, and they attempt to go to that page that has been deleted or moved, they will get a "404 File Not Found" Error! which is not what anyone wants.
The best way to redirect those pages is by using something called a "301 Redirect". What this 301 redirect does, is it blatantly redirects to a different page when it is triggered, what makes the 301 redirect the best, is that not only does it accomplish your redirect, it does it safely, no having to worry about the search engines penalizing you for it! To be specific, the 301 redirect tells the browser , or in other cases, it tells the search engines "Hey this page has been moved , here is the correct URL!".
Very simple to use, all you need to know is the new URL. Then in the page you wish to move or delete add the following code. It'll add the redirect code to your page.
Note: best if this mambot runs first, in case another mambot writes code to the browser which may stop it from working.
The mambot has been updated, and can now take a few different commands to enable page redirection, the following options are:
The following instructions are applicable to both versions of this plugin.
Absolute URL: you can specifiy the full URL, useful for when the new page is no longer on the same server or under a subdomain.
Command*: { sbdredirect newwebpage}
Example: { sbdredirect http://www.simplebydesign.co.uk}
Article ID: you can just specify the article ID for the mambot to redirect to and converts to SEF before redirection,
Command*: { sbdredirect id:(Article ID)}
Example: { sbdredirect id:2}
Index.php: you can pass a full relative Joomla URL string, for when not using SEF
Command*: { sbdredirect (index.php)}
Example: { sbdredirect index.php?option=com_sobi2}
Section ID: you can redirect to any content section using the ID for that section
Command*: { sbdredirect sec:(Section ID)}
Example: { sbdredirect sec:1}
Category ID: you can redirect to any content category using the ID for that category
Command*: { sbdredirect cat:(Section ID):(Category ID)}
Example: { sbdredirect cat:1:100}
* To run the redirect call (remove the space between { and sbdredirect):
The following instructions are only available to Joomla 1.5 Native version of this plugin.
It is possible to control where this plugin redirects based upon whether a visitor is logged in, in a certain authorisation group or is a certain user. The plugin follows the following priority with a non logged in user being lowest to specific user being the highest:
The highest priority match takes precedence for redirect, if a guest user redirect is used and no other match is met this will always be used.
To redirect a Guest user use the generic instructions.
To redirect a User Group you need to add the word group in front of any of the generic commands, followed by the normal command* and then the group you wish to redirect. For example:
{ sbdredirect groupid:18:superadministrator}
Available user groups (Note - all must be in lowercase):
To redirect logged in users you need to add the word user in front of any of the generic commands, followed by the normal command*.
{ sbdredirect userid:18}
To redirect a specific user you can add a single user id or a group of user ids separated by a comma, for example:
Single User: { sbdredirect userid:18:62
Multiple Users: {sbdredirect userid:18:62,63,64,65}
It is possible to mix and match multiple redirects, just remember the priority order to which option will be used. For example:
By adding the word user in front of any of the generic commands you can set a redirect based upon whether the current visitor to your site is logged in or not. The following example will redirect a logged in user to article 19 (remember to remove the space between { and sbdredirect}:
{ sbdredirect userid:19}
It is possible to redirect a logged in visitor to a different location to a non-logged in visitor, in the following example a non-logged in visitor is redirected to Article 19, whereas the logged in user gets redirected to our homepage:
{ sbdredirect id:19 userhttp:www.simplebydesign.co.uk}
* If the normal generic command requires two parameters after the command then the second option is placed at the end of the command, for example:
{ sbdredirect groupcat:1:administrator:2}
ACL Redirection - It is possible to redirect based on ACL access (currently only NOIX groups are supported), to use these groups you need to use the following:
To use the noixacl you need the following:
{ sbdredirect acl<redirect type>:noix:<noix group>:<redirect reference>}
I.e.
{ sbdredirect aclid:noix:MyTest:1}
Note: ACL is currently only available in version 4 for our subscribers.
The latest version of the mambot will always downloadable from the following location:
Visit our forums for support on our 301 Redirect Plugin for Joomla.
25/06/2009: V0.5 -
fixed an issue in the creation of a non-registered user
fixed an issue when using http:// style links
22/06/2009: V0.4 -
fixed an issue if just ID is used and a registered user visits the page
added ACL NOIX group capability
09/05/2009: V0.3 -
Added the ability to alter redirection based upon a users group, or specific user ids
27/04/2009: V0.2 -
Added the ability to alter redirection based upon a user being logged in or out
25/04/2009: Initial Release V0.1
Joomla 1.5 Native version released
04/02/2009: Now Joomla 1.5 compatible in legacy mode
16/11/2007: Added option to redirect to a Category
16/11/2007: Added option to redirect to a Section
15/11/2007: Added option to use a relative url for redirect
15/11/2007: Added option to use index.php url for redirect
13/11/2007: Added option to use article ID for redirect
19/10/2007: Initial Release