MODX revo – Redirect page with no contents

On MODX Revo ( i’m using the versions 2.4.4 ), if you have a page with no content, it will be  indexed on search engine. You can avoid it, doing a redirect to another page.

  • First, create a template page to assign at pages that have no content.
  • In the template file simply add : [[!redirectpage? &url=`/`]]
  • where &url=`/` contain the url where you want the page will be redirect.
  • Assign the template at the page that you need to redirect.

That’s all

Andrea