× Here you can get community support related to ReDJ.

Redirect EXACT expression only - how to?

  • mark-grein
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 days ago - 9 years 6 days ago #4436 by mark-grein
Redirect EXACT expression only - how to? was created by mark-grein
Hello,

I'm a newbie in regular expressions settings and I would like to ask someone for help with this problem ( I have ReDJ Enterprise plugin):

I need to redirect this only/exact address (Joomla Category): "www.castingaba.com/en/castings" directly to homepage (www.castingaba.com/)

but I DON'T WANT to redirect the others depended (Joomla Subcategories) addresses e.g.:

www.castingaba.com/en/castings/103-last-visa
www.castingaba.com/en/castings/117-okay-ii
www.castingaba.com/en/castings/98-back-to-back

Thanks a lot for any suggestions! :)
Last edit: 9 years 6 days ago by mark-grein. Reason: wrong sentence structure

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

More
9 years 6 days ago #4438 by admin
Replied by admin on topic Redirect EXACT expression only - how to?
It's easy:
From URL: ^/en/castings$
To URL: {scheme}://{siteurl}/
Request only: true (checked)

The "trick" to NOT MATCH others is in the final dollar (means "end with").

Kind regards,
Luigi
The following user(s) said Thank You: mark-grein

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

  • mark-grein
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 days ago #4439 by mark-grein
Replied by mark-grein on topic Redirect EXACT expression only - how to?
Hello Luigi,
many thanks for your suggestion! :)

Redirection is now properly working for the address: www.castingaba.com/en/castings/ (redirecting to homepage) BUT not redirecting the other variant of the address: www.castingaba.com/en/castings – and I really need both redirections :(

Thanks again for your help and great plugin!

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

More
9 years 6 days ago #4440 by admin
Replied by admin on topic Redirect EXACT expression only - how to?
If you need to match both URLs:

www.castingaba.com/en/castings
www.castingaba.com/en/castings/

Change the rule as follow:
From URL: ^/en/castings/?$
To URL: {scheme}://{siteurl}/
Request only: true (checked)

Kind regards
The following user(s) said Thank You: mark-grein

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

  • mark-grein
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 days ago #4441 by mark-grein
Replied by mark-grein on topic Redirect EXACT expression only - how to?
GREAT, MANY THANKS :)

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

More
9 years 5 days ago #4444 by admin
Replied by admin on topic Redirect EXACT expression only - how to?
U're welcome. :)

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

Time to create page: 0.169 seconds