× Here you can get community support related to ReDJ.

one redirect to manage multiple articles?

More
8 years 11 months ago #4491 by Mel
I have been studying your instructions for days but I think I must be mentally incapable when it comes to understanding how to write the redirect code. I also searched your forum to see if I could similar questions to mine to help me understand.

Unfortunately I cannot do proper testing just yet as we haven’t changed to the new website but I want to be ready for when we do change.

I think I found the solution in your forum for the first redirect I need. Please let me know if I have it correctly. Below XYZ is the ID number of the article and I'm not sure if I have the forward slash on the end of the 'From' url correct.

From: http://oldsite/XYZ-the-article-title/
To: newsite.com/news/XYZ-the-article-title

From URL: ^/[0-9]+-[^/]+$
To URL: {scheme}://{siteurl}/eventdetail/{path}
Request only: true (checked)

The 2nd redirect I need which I don't have a clue how to write is this:

From: oldsite.com/event/article-title/?instance_id=XYZ
To: newsite.com/eventdetail/XYZ/article-title

Thanks so much for your help

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

More
8 years 11 months ago - 8 years 11 months ago #4495 by admin
Replied by admin on topic one redirect to manage multiple articles?
Hi Mel,
assuming ReDJ is installed on the old site /which receives the requests):
From URL: ^/[0-9]+-[^/]+$
To URL: {scheme}://newsite.com/news{path}
Request only: true (checked)

The rule preserves the same request scheme, but you need to put the real new domain in the target.

For the second redirect:
From URL: ^/event/[^/]+/\?instance_id=
To URL: {scheme}://newsite.com/eventdetail/{queryvar instance_id}/{pathltrim event}
Request only: true (checked)

Kind regards,
Luigi
Last edit: 8 years 11 months ago by admin.
The following user(s) said Thank You: Mel

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

Time to create page: 0.131 seconds