× Here you can get community support related to ReDJ.

Redirect not working

  • veganvixen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 10 months ago - 6 years 10 months ago #6178 by veganvixen
Redirect not working was created by veganvixen
Hi,

I am changing my main site from mysite.com to www.mynewsite.com. So all links from the www.mysite.com site will redirect to the corresponding pages on mynewsite.com.

I tested with the one below, but it is not working. Can you please tell me what I am doing wrong?

DIRECT FROM:
^/blog/8-site-launch

TO:
{scheme}://{www.mynewsite.com/blog/8-site-launch}/

Help is appreciated.
Last edit: 6 years 10 months ago by veganvixen.

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

More
6 years 10 months ago #6179 by admin
Replied by admin on topic Redirect not working
Hi,
create a rule as follow (literally):
From URL: ^/blog/8-site-launch$
To URL: http://www.mynewdomain.com{path}
Request only: true (checked)

Your rule's target seems to be wrong.

Best regards,
Luigi

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

  • veganvixen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 10 months ago #6180 by veganvixen
Replied by veganvixen on topic Redirect not working
Hi Luigi,

I created the rule exactly as you stated and it is not working. Can I share the actual live link with you privately?

Thank you for your help.

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

  • veganvixen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 10 months ago #6181 by veganvixen
Replied by veganvixen on topic Redirect not working
It is working now Luigi. Thank you!

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

  • veganvixen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 10 months ago #6182 by veganvixen
Replied by veganvixen on topic Redirect not working
Luigi...one last question. How should I create a rule for the home page?

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

  • veganvixen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 10 months ago #6183 by veganvixen
Replied by veganvixen on topic Redirect not working
Luigi.....

I spoke to soon. This is not working. Now I am getting duplicate in the url as noted below:

FROM:
^/contact$

TO:
www.mynewsite.com/contact{path}

HOWEVER....the redirect url is taking to the path below and duplicating the page!

www.mynewsite.com/contact/contact

It is still redirecting to this bad url after I disable the rule in the back end. And even after clearing cache and cookies? Why is this happening?!

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

Time to create page: 0.126 seconds