× Here you can get community support related to ReDJ.

Dynamic redirection based on username

  • Newsboy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 days ago - 9 years 6 days ago #4435 by Newsboy
Dynamic redirection based on username was created by Newsboy
Hi Luigi,

Is it possible in Enterprise edition dynamic redirection based on username?
I mean:
FROM
www.something.com/this_is_an_username
TO
www.something.com/folder/this_is_an_username
Is it possible to create a rule which can handle lot of username?

Thanks for your help!
Last edit: 9 years 6 days ago by Newsboy.

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

More
9 years 6 days ago #4437 by admin
Replied by admin on topic Dynamic redirection based on username
Yes, and is possible also in the Community version. The only problem to build the rule is how to identify the username? I mean, you could have:

www.something.com/john
www.something.com/news

Same structure but we should match only the first one, right?

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

  • Newsboy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 days ago #4443 by Newsboy
Replied by Newsboy on topic Dynamic redirection based on username
Yes, right!
But if the all urls of the site ends with .html, except the usernames?

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

More
9 years 5 days ago #4446 by admin
Replied by admin on topic Dynamic redirection based on username
This makes a great difference.
From URL: ^/[^/]+$
Skip: \.html$
Request only: true (checked)

Kind regards,
Luigi

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

  • Newsboy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 days ago #4448 by Newsboy
Replied by Newsboy on topic Dynamic redirection based on username
Thanks Luigi!

And what is the correct format in this case the TO - url?
FROM
www.something.com/this_is_an_username = ^/[^/]+$
TO
www.something.com/folder/this_is_an_username = ?

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

More
9 years 4 days ago #4451 by admin
Replied by admin on topic Dynamic redirection based on username
This should work:
From URL: ^/[^/]+$
To URL: {scheme}://{siteurl}/folder{path}
Skip: \.html$
Request only: true (checked)

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

Time to create page: 0.165 seconds