Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect my first page "index.php" to another page
#2
The way I handle this is to first of all create a redirect.php file in the same folder as your theme's template.php file. In this new PHP file paste the following:

Code:
<?php if(!defined('IN_GS')){ die('You cannot load this page directly.'); }

header("HTTP/1.1 301 Moved Permanently");
header("Location: " . get_page_meta_desc(false));

exit();

Then, log into your GetSimple install and edit the "index" page (it's slug will be "index"), under "Page Settings" change the "Page Template" to "redirect.php" and the "Meta Description" field to /exposition.php which is the page people will end up on if they try to access the home page.
Modern UI Admin for GetSimple
Watch the demo. Install this plugin. Use this CSS. Enjoy.
Reply


Messages In This Thread
Redirect my first page "index.php" to another page - by sal - 2012-09-18, 10:42:45



Users browsing this thread: 1 Guest(s)