Back WordPress

A Quick WordPress Page Redirection

WRITTEN BY ON 07 May 2014
5,465 VIEWS • SHARES
0 comments

Make a quick and simple page redirection with WordPress template.

Alright, I wanted to make a page redirection, just one, and I don't want the trouble of looking for plugin and install them and doing all those updates in the future. So, here is the nice and easy way:

Create a page template with the redirection link:

<?php 
/*  
Template Name: Page Redirect
*/ 

header('Location: http://www.queness.com');
exit();

?>

2. Goto your page, and set the template to "Page Redirect"

That's it, the quickest way to set a page redirection!

Join the discussion

Comments will be moderated and rel="nofollow" will be added to all links. You can wrap your coding with [code][/code] to make use of built-in syntax highlighter.