× Here you can get community support related to ReDJ.

convert part of a filename to a directory

  • BodgeIT
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago #1349 by BodgeIT
Hi Luigi,
I wish I could figure this out but Regexp is like Russian to me!

I have many urls like:

/training/in-house-********** (*s = name of training course)

I need to redirect them to:

/training/in-house/*********

So far my redirects seem to create infinite loops.
Can you translate the Russian for me?

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

More
10 years 9 months ago #1350 by admin
Replied by admin on topic convert part of a filename to a directory
Ok,
it's not so difficult...
From URL: ^/training/in-house-
To URL: http://{siteurl}/training/in-house/{pathltrim /training/in-house-}

I'm assuming the URL has no params and ends after the *****, if this is not the case we should change a little the rule...

Kind regards,
Luigi
The following user(s) said Thank You: BodgeIT

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

  • BodgeIT
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago #1351 by BodgeIT
Replied by BodgeIT on topic convert part of a filename to a directory
Hi Luigi,
Thanks for taking the time to reply so late at night.
It always appears a lot more complicated but when you see it done for you...seems so simple.

Thanks
Gary

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

More
10 years 9 months ago - 10 years 9 months ago #1354 by admin
Replied by admin on topic convert part of a filename to a directory
Thank you,
I'm here for this :)
Last edit: 10 years 9 months ago by admin.

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

Time to create page: 0.092 seconds