× Here you can get community support related to ReDJ.

redirect in /this/folder but not /in/this/folder

  • BodgeIT
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago - 10 years 9 months ago #1361 by BodgeIT
Hi Luigi,
latest conundrum...

I want to redirect

/open-workshops/docnames

to events/open-workshops/docnames+[-details]
(basically adding a bit to the path at the front and '-details' at the end
but don't want to affect

/training/in-house/open-workshops/docnames

my from is:
^/open-workshops/
to:
http://{siteurl}/events{path}-details

(haven't activated the above because I know it wont work)

When trying to convert a single like
www.sitename.com/training to www.sitename.com/services/training

with from:
^/training$
and to:
http:{siteurl}/services/training

this affects:
www.sitename.com/training and www.sitename.com/services/training

How do you prevent that? Could this be eased with another option?
Last edit: 10 years 9 months ago by BodgeIT.

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

More
10 years 9 months ago #1365 by admin
Hi,
the rule seems right. Moreover if you create the following "Request Only" rule:
^/training

The initial caret means "start with" so it can match www.sitename.com/training but NOT www.sitename.com/services/training.

If your result is different, there's a problem, as example another rule affecting the second URL, or something similar.

Kind regards,
Luigi

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

Time to create page: 0.081 seconds