Jump to content

Recommended Posts

Hi,

I am trying to figure out how to create a redirect link with Process Wire, it's so easy to do with Word Press but not sure how to go about it with Process Wire.  Can anyone kind of guide me through the steps on how to do this or is there a easy Module that will do this?

 

Thanks

Cam

Link to comment
Share on other sites

At the top of your template files, inside a <?php  ?> tag, preferably before outputting anything. You can't send a new header after you've already sent them (i.e. output any data)

For example: (in your home.php)

<?php namespace ProcessWire;

$session->redirect("/about/");

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...