In order to make the path_redirect module handle redirections with wildcards, I created a patch for it. There wasn't a simple way to do wildcard redirections through the .htaccess file. Some times is important to make a wildcard drupal redirects.
The way wildcards work:
When you want to redirect a path like "/about/" to "/" then any path based in about will be redirected to "/" like "/about/something/" or "about/anything" will be redirected to "/".
Patched module is in the attachment. The attachment contains all the module files already patched.
Files patched:
path_redirect.intall
path_redirect.module
path_redirect.admin.inc
You need to run the updates.php script after upgrading the module.
The patch was made for version:
<?php
// $Id: path_redirect.module,v 1.3.2.7.2.49 2009/06/27 21:57:20 davereid Exp$
?>| Attachment | Size |
|---|---|
| path_redirect_wildcard.zip | 42.44 KB |
How do you use this? I've tried adding <*> as a wildcard, but get the error "The redirect to path does not appear valid."
Just follow the instructions on the attached file.
Post new comment