× Here you can get community support related to ReDJ.

Redirection not working

  • rubold
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago - 8 years 10 months ago #3993 by rubold
Redirection not working was created by rubold
Hi Luigi,

It seems that I can not get my rule working.

I would like to redirect some Virtuemart product pages to specific menu items (articles) that I use as a "product info page"

my first try:
from: www.felnotttarsasok.hu/component/virtuemart/felnott-tarsasok/paros-jatszma-termek?Itemid=0
to: www.felnotttarsasok.hu/paros-jatszma

I attach the screenshot of my rule which is not working.

I puchased enterprise edition of ReDJ

Can you please help me?

Thanks,
Laszlo
Attachments:
Last edit: 8 years 10 months ago by rubold.

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

More
8 years 10 months ago #3996 by admin
Replied by admin on topic Redirection not working
Hi Laszlo,
of course I can help you. Unfortunately I am not able to see the details in the screenshot, but it seems you forgot to escape the question mark. The "From URL" is a regular expression (it could match many URLs), and special chars like the question mark must be escaped with a backslash ahead when literal. So try this rule (literally, it uses macros in the target URL, to increase portability):
From URL: ^/component/virtuemart/felnott-tarsasok/paros-jatszma-termek\?Itemid=0$
To URL: {scheme}://{siteurl}/paros-jatszma
Request only: true (checked)

But I guess this is also a better rule:
From URL: ^/component/virtuemart/felnott-tarsasok/paros-jatszma-termek
To URL: {scheme}://{siteurl}/paros-jatszma
Request only: true (checked)

Kind regards,
Luigi

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

  • rubold
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #3998 by rubold
Replied by rubold on topic Redirection not working
Hi Luigi,

The better rule is the best rule! It worked like a charm.

I should have spend more time to learn these macros, but thanks to your top-notch support my problem is solved

Thanks again and have a nice day!

Best regards,
Laszlo

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

More
8 years 10 months ago #3999 by admin
Replied by admin on topic Redirection not working
Hi Laszlo,
thank you and have a nice week you too... :)

For any further request, you are welcome.

Kind regards,
Luigi

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

More
8 years 10 months ago #4018 by aquans
Replied by aquans on topic Redirection not working
Hello, I tried what you have up here

I rebuilt a website and per the old site I want to redirect the old links as shown here:

www.mastercraftroofinggroup.com/about-us/

To

mastercraftroofinggroup.com/about-mrg

And so on. I have tried everything from watch this video
and nothing is working.

I tried this code per your message here:

^/about-us/
to
{scheme}://{siteurl}/about-mrg

No go.

Please help?

Thanks

Bill

I have this url fr

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

More
8 years 10 months ago #4021 by admin
Replied by admin on topic Redirection not working
Hi Bill,
assuming you need to redirect:
www.mastercraftroofinggroup.com/about-us/ (with www)

To:
mastercraftroofinggroup.com/about-mrg

The rule is the following:
From URL: ^https?://www\.mastercraftroofinggroup\.com/about-us/$
To URL: {scheme}://mastercraftroofinggroup.com/about-mrg
Request only: false (unchecked)

Kind regards,
Luigi

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

Time to create page: 0.095 seconds