× Here you can get community support related to ReDJ.

redirect rule

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2475 by ppeer
redirect rule was created by ppeer
I would like to redirect like e.g.:

example.org/deep-house-cat

to

example.org/index.php?option=com_jumi&view=application&fileid=2&urlplaylist=deep-house-cat

but I just can't get it right...

Please could you help me?

regards
Peter

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

More
9 years 11 months ago #2476 by admin
Replied by admin on topic redirect rule
Hi Peter,
do you mean a rule to redirect ANY URL with this structure?
http://example.org/<short-alias>

If this is not the case, the rule is really simple (this is why I guess is not so):
From URL: ^/deep-house-cat$
To URL: http://{siteurl}/index.php?option=com_jumi&view=application&fileid=2&urlplaylist=deep-house-cat
Request only: true (checked)

Kind regards,
Luigi

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

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2477 by ppeer
Replied by ppeer on topic redirect rule
Ha Luigi,

Yes I do mean to redirect ANY rule with that structure.

Regards,
Peter

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

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2478 by ppeer
Replied by ppeer on topic redirect rule
Ha Luigi,

Yes I do mean to redirect ANY rule with that structure.
(Or would you advice against that and adding e.g. a section like www.example.org/section/blabla ?)

Regards,
Peter

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

More
9 years 11 months ago #2479 by admin
Replied by admin on topic redirect rule
To redirect ANY URL with this "single folder" structure:
www.example.org/page

Try this:
From URL: ^/[^/]+$
To URL: http://{siteurl}/index.php?option=com_jumi&view=application&fileid=2&urlplaylist={pathltrim /}
Request only: true (checked)

The "trick" is in the [^/]+ that means "one or more chars NOT /". So this will NOT match www.example.org/section/blabla.

Kind regards,
Luigi

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

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago - 9 years 11 months ago #2480 by ppeer
Replied by ppeer on topic redirect rule
unfortunately, this rule returns:

example.org/index.php?option=com_jumi&view=application&fileid=2&urlplaylist=index.php

tried TO:
http://{siteurl}/index.php?option=com_jumi&view=application&fileid=2&urlplaylist={pathrtrim /index.php}

nearly there, but returns:
example.org/index.php?option=com_jumi&view=application&fileid=2&urlplaylist=/page

instead of:
example.org/index.php?option=com_jumi&view=application&fileid=2&urlplaylist=page

do you have a clue?

regards
Peter
Last edit: 9 years 11 months ago by ppeer.

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

Time to create page: 0.113 seconds