Downloads
Mambo* Plugins - functional
Redirects Component
Redirects Component
Download
- Description:
-
This is a new component (for Mambo 4.6 or later ONLY) to handle redirection of URLs that involve query strings. If a URL such as http://www.mydomain.com/index.php?this=aloadofrubbish gets into the search engines, you may want to redirect it. Maybe there was once a page with that URL, but you decided to delete it.
You can't use a standard .htaccess redirect when a query string is involved, that kind of redirect only handles the part of the URL that specifies a file - index.php in this case. So the redirect has to be handled by software. This component makes it easy. Through the admin side, you can manage a list of query strings and the corresponding URLs you want them redirected to. The redirect can be to another site or to the same site. It is done with a proper 301 redirect header.
There does have to be a small change to the code of the Mambo 4.6 index.php. Immediately after the database has been established (somewhere around line 90 at the time of writing) insert extra code:
if (file_exists($configuration->rootPath().'/components/com_redirects/redirects.php'))
include ($configuration->rootPath().'/components/com_redirects/redirects.php');so that the Redirects component will be called. New patches for Mambo 4.6 will include the change.
- Submitted By:
- Super Administrator (admin)
- Submitted On:
- 13 Dec 2006
- File Size:
- 7.66 Kb
- Downloads:
- 260
- License:
- GNU/GPL
- File Version:
- 1.0
- File Author:
- John Long (konlong)
- File Date:
- 21 Jul 2006
