Welcome to Geeklog, Anonymous Wednesday, August 17 2022 @ 12:17 am EDT

Geeklog Forums

How to make a static page the main page


Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
I've created a static page with left-hand blocks. I would like to make that static page the inititial page on my site. How do I do that?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

You may want to read this thread.

Also, it seems like Mark has checked something into CVS that does this (see point 3) in his posting on the geeklog-devel mailing list but I haven't test it myself yet (and it's only in CVS, i.e. post-1.3.6rc1).

bye, Dirk

 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
I'm working with 1.3.6rc1. Does this contain the same staticpages 1.1 as the one released by "phil"? Also, the link to phil's hockyoursocks.com doesn't work. Is there another place to get phil's static pages? TIA John Hughes
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

Sorry about the confusion with the version numbers ... Both Phill's version and the one that ships with 1.3.6rc1 are called 1.1 but they are really two different implementations.

It seems Phill's site is now at http://www.mediaaustralia.com.au/geek/public_html/

bye, Dirk

 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
After creating your static page determine the page URL. In the index.php file add these lines after the comments at the top of the page: if ($QUERY_STRING == '') { header("Location:http://www.yourwebsite.com/staticpages/index.php/numberofarticle"Wink; exit; } Replace www.yourwebsite.com/staticpages/index.php/numberofarticle with the actual URL for your article. Every time index.php is invoked without arguments, the visitor is redirected to the static page. When index.php is invoked with arguments, the query string is processed by index.php Is there any reason why this is NOT an appropriate way to do this? John Hughes
 Quote

All times are EDT. The time is now 12:17 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content