× Here you can get community support related to ReDJ.

Help with redirect rule

  • anywhere88
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 months ago #2044 by anywhere88
Help with redirect rule was created by anywhere88
Hi, I need some help writing a redirection rule that should be quite simple (I hope).
I should redirect from:
www.mysite.com/old/NAME_OF_ARTICLE.htm
to
www.mysite.com/new/NAME_OF_ARTICLE.htm
This has to be done for every NAME_OF_ARTICLE, so I just need to intercept .../old/... and makes it as .../new/...
I think this should be possible with just one rule, but I don't know how to make it.

Thanks in advance.

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

More
10 years 3 months ago - 10 years 3 months ago #2045 by admin
Replied by admin on topic Help with redirect rule
Hi,
try this:
From URL: ^/old/
To URL: http://{siteurl}/new/{pathltrim /old/}{queryfull}
Request only: true (checked)

Kind regards,
Luigi
Last edit: 10 years 3 months ago by admin.
The following user(s) said Thank You: anywhere88

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

  • anywhere88
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 3 months ago #2046 by anywhere88
Replied by anywhere88 on topic Help with redirect rule
Thanks, it works great ;)

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

More
10 years 3 months ago #2047 by admin
Replied by admin on topic Help with redirect rule
U're welcome.

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

Time to create page: 0.138 seconds