× Here you can get community support related to ReDJ.

Route using itemid=XXX

  • yuberlin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago #5882 by yuberlin
Route using itemid=XXX was created by yuberlin
I need an advice for routing urls with ?itemid=XXX at the end.

I want to route all urls ending with...
{fullurl}&Itemid=123

...to:
www.domain.de/index.php?option=com_content&view=article&id=2697&Itemid=123

How do i get the full path before &Itemid=123 without the domain?

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

More
7 years 10 months ago #5884 by admin
Replied by admin on topic Route using itemid=XXX
Try this rule:
From URL: &Itemid=123$
To URL: {scheme}://{siteurl}/index.php?option=com_content&view=article&id=2697&Itemid=123
Request only: true (checked)

Kind regards,
Luigi

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

  • yuberlin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago - 7 years 10 months ago #5885 by yuberlin
Replied by yuberlin on topic Route using itemid=XXX
Thanks...but this part changes:
index.php?option=com_content&view=article&id=2697&

So i want to route...

www.domain1.de/index.php?option=com_content&view=article&id=345&Itemid=123

and

www.domain1.de/index.php?option=com_content&view=article&id=346&Itemid=123

and

www.domain1.de/index.php?option=com_content&view=article&id=347&Itemid=123

to

www.domain2.de/{path-above}&Itemid=123


I need something like..
To URL: {scheme}://{siteurl}/{path-before}&Itemid=123
Last edit: 7 years 10 months ago by yuberlin.

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

More
7 years 10 months ago #5886 by admin
Replied by admin on topic Route using itemid=XXX
Try this:
From URL: ^/index\.php\?option=com_content&view=article&id=[0-9]+&Itemid=123$
To URL: http://domain2.de{path}{queryfull}
Request only: true (checked)

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

Time to create page: 0.175 seconds