Posted on: 09/10/02 10:03pm
By: jlhughes
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?
How to make a static page the main page
Posted on: 09/11/02 12:56am
By: Dirk
You may want to read this thread[*1] .
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[*2] but I haven't test it myself yet (and it's only in CVS, i.e. post-1.3.6rc1).
bye, Dirk
which version static page in 1.3.6rc1?
Posted on: 09/11/02 08:39am
By: jlhughes
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
which version static page in 1.3.6rc1?
Posted on: 09/11/02 09:01am
By: Dirk
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/[*3]
bye, Dirk
Simple hack to make static page the main page
Posted on: 09/11/02 01:12pm
By: jlhughes
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"
;
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