Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect Template For Themes
#1
Do you need to make a page that simply redirects? Do you need that page to also show up in the menu? The solution is simple, simply follow these step and you'll be up and going.

Step 1.
Open up your favorite text editor. -I.E. Notepad++- and place the following code in said text editor.
Code:
<?php if(!defined('IN_GS')){ die('You cannot load this page directly.'); }
/****************************************************
* @File: redirect.php
* @Package: GetSimple
* @Action: YOURTHEME
* *****************************************************/
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . get_page_meta_keywords(false));
exit();
?>
Save as redirect.php

Now upload "redirect.php" into your site in the theme directory you are using.
Example
FTP
/YOURDIRECTORYFORGETSIMPLE/themes/CURRENT THEME

Step 2.
In GS simply create a new page and place the URL you want to redirect in the TAGS & Keywords field
and your done you can now have a page show up in the menu that simply rediects.
Reply


Messages In This Thread
Redirect Template For Themes - by chien - 2015-04-24, 04:43:23
RE: Redirect Template For Themes - by shawn_a - 2015-04-24, 05:20:14
RE: Redirect Template For Themes - by chien - 2015-04-24, 05:44:36
RE: Redirect Template For Themes - by shawn_a - 2015-04-24, 06:39:22



Users browsing this thread: 1 Guest(s)