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
#2
Keywords is probably not the best place for this, since plugins use them as tags for various stuff
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
What about using
Code:
<?php get_page_meta_desc(); ?>
?
Reply
#4
Probably better
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)