× Requests and support related to jBackend.

A rule for ANY url that contains a particular subfolder?

  • gdpodesta
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #6905 by gdpodesta
I'm very poor with Regex, so this answer may be obvious, but I can't get a redirect to work if a particular folder is in the url.

www.example.com/images/
www.example.com/images/folder
www.example.com/images/folder2/image.jpg
www.example.com/somewhereelse/images/

In ANY of these instances, because it containes "/images", it should be redirected
Thank you.

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

  • gdpodesta
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #6906 by gdpodesta
Regex is not exactly my strong point, so perhaps this is a dumb question, but I can't seem to make redirection rule to match any url that contains a particular folder or subfolder.

i.e.
www.example.com/images
www.example.com/images/pic.gif
www.example.com/deeper/images/pic.gif
www.example.com/deeper/deeper/images/pic.gif

I want anything with the folder images specified to be redirect to a particular url (the same url in all cases).

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

More
6 years 1 month ago #6907 by admin
Hi,
the From URL should be like this:
From URL: /images/
Request only: true (checked)

Kind regards
Luigi

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

Time to create page: 0.129 seconds