× Here you can get community support related to ReDJ.

Redirecting K2 Author Pages to new profile page

More
7 years 10 months ago #5847 by oman
Dear ReDJ Developers and Community,

Originally I had planned to use the K2 Author Page as the public profile for users by customizing its layout, but I've decided to use a different component to do the job now.

Unfortunately it's not possible to disable K2 Author Pages, while K2 comments (image and links) and K2 modules link to those pages, too.

Luckily, the URLs to K2 Author Pages and the other component I'm using at least include user ID numbers.

This would be an example of a user's K2 Author Page URL:

www.mysite.com/component/k2/author/1863?Itemid=495

And the other component's profile page for the same user I'm hoping to redirect them to is:

www.mysite.com/profile/page/1863?task=page.display&page_id=6

As you can see, the "1863" is the user's ID #.

Do you think it would be possible to use ReDJ to redirect all users away from their K2 Author Pages to their Social Factory profile page by focusing on the users' ID #s?

If so, any additional information about creating a redirect of this kind would be greatly appreciated!

Thanks.

Kind regards,

Scott Oman

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #5852 by admin
Hi Scott,
create the following rule (literally):
From URL: ^/component/k2/author/[0-9]+
To URL: {scheme}://{siteurl}/profile/page/{preg_match 1}/\/author\/([0-9]+)/{/preg_match}?task=page.display&page_id=6
Request only: true (checked)

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds