Jump to content

Featured Replies

Posted

Hi I need to delete an old page and I need to make a redirect 301 to a External page in diferent domain. It is possible to make it in cloud IPS?

I need to make:

redirect 301 /test/ https://newdomain.com/test

Thanks a lot!

Solved by Sonya*

Go to solution

If you have Pages, delete the page, create another one with the same slug. Manual HTML, no suite wrapper, no page wrapper and add in into the content:

{{\IPS\Output::i()->redirect( [YOUR_EXTERNAL_URL], NULL, 301);}}

This would redirect to the external URL with 301 HTTP code. Adjust the code as you need.

Edited by Sonya*

  • Author

Thanks @Sonya* for your quickly answer. I'm testing and IPS returns error. I change 

YOUR_EXTERNAL_URL to my URL

Could contain: Text, Page

Any idea that whats happend?

  • Solution

put the URL in quotes:

{{\IPS\Output::i()->redirect( 'https://external.url', NULL, 301);}}

 

Recently Browsing 0

  • No registered users viewing this page.