How to redirect Content Profile pages?
blueblade - September 5, 2009 - 23:55
| Project: | Path redirect |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
I am using Content Profile, Views and Automatic Aliases.
I created a Views page and one of the link is supposed to link to the 'default' content profile page (users/[user id]) but instead the link is taking the users to node/[user id] page which look quite different from the 'default' profile page. I have used Automatic Aliases to change node/[user id] to profile/[user id]. Now I want to redirect all profile/[user id] pages to users/[user id]
My question here is, what should I use for [user id]? I have tried % and * but none works...what should go after # and ? on admin/build/path-redirect/add page?
Thanks for your help.
BB

#1
Adding your own rewrite rule in your site's .htaccess is the most guaranteed way. There is no support for wildcards in Path redirect, which is what you need.
#2
Thanks Dave,
I have no idea how to rewrite rule in .htacess...is there any reason why wildcards is not supported in Path redirect?
BB
#3
Because they can't be reliably done through Drupal and it's interface as well as .htaccess rewrite rules can be. There are tons of articles out there teaching how to write rewrite rules.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.
#5
I'm hoping there's a different way to do this. I would like to redirect /users/XX pages to the associated content profile page. But .htaccess wouldn't have access to the relationship between the /users/XX page and the content profile page (i.e. the UID of the owner of the content profile node is the same as the XX user ID).
Thoughts on that?
THANKS!