× Here you can get community support related to ReDJ.

Help with Redirect with a changing ID

  • gamaru
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #6220 by gamaru
Hello,

I currently have pages where the source url looks like the following: www.mydomain.com/search?authors=46842&Sam

The number "46842" after authors can change so I basically need a way for it to redirect whenever the "&Sam" part shows up in the URL. This redirects to a static page that looks like: www.mydomain.com/resources/1397-Sam

I currently have: ^/search\?authors\=[0-9]+\&Sam$

This isn't working so any help would be great.

Thanks!

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

More
7 years 3 months ago - 7 years 3 months ago #6225 by admin
Replied by admin on topic Help with Redirect with a changing ID
Try this (literally):
From URL: ^/search\?authors=[0-9]+&Sam$
ToURL: {scheme}://{siteurl}/resources/1397-Sam
Request only: true (checked)
Case sensitive: true (checked)

Take a look at the hits counter forthe rule (it should grow for working rules).

Kind regards,
Luigi
Last edit: 7 years 3 months ago by admin.

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

Time to create page: 0.160 seconds