Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, June 19 2013 @ 03:23 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Splash Page for Site
   
Anonymous: Anonymous
 06/18/02 08:37PM (Read 1506 times)  



Does anyone know of a good way to implement a splash page? I've gotten several requests from our site users for one.

I know that I could move the whole directory structure down a level (/gl vice /) and use the root index file for the splash page, but was looking for another option. I wanted to take advantage of the Static Pages plug-in. The site is www.ncwc.org.

Thanks,
Brian Milby
brian@milby7.com


 
 Quote
Dirk
 06/19/02 12:48AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13035
You could do that with some .htaccess magic (if your site is running on an Apache server). When your webserver is configured to search for index.html before index.php, you could simply add

Redirect index.html http://yoursite/staticpages/index.php?page=20020619093951560

to a .htaccess file to be placed in the root directory of your Geeklog site.

bye, Dirk

 
Profile Email Website
 Quote
Anonymous: Anonymous
 08/07/02 07:00PM  



it seems do not work...

 
 Quote
Anonymous: Anonymous
 08/09/02 05:03AM  



This obviously also won't work with Windows. But usually Webservers check for the index.html first, so I suggest you jus prepare a index.html file (or try index.htm) and drop it into your Web root directory. Worth a try.

 
 Quote
os
 08/16/02 01:11PM  
++---
Junior

Status: offline


Registered: 04/11/02
Posts: 27
Read the middle of this page if you have problemes with redirection with htaccess


.øs

 
Profile Email Website
 Quote
jlhughes
 09/11/02 01:18PM  
+++++
Full Member

Status: offline


Registered: 04/25/02
Posts: 154
One way to do this is to create a page that displays whenever the geeklog root index.php file is invoked without any arguments as when a visitor first arrives at the site.

On one of my sites I have done this with a static page.

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

This of course could be done with any page and doesn't have to be done with a static page.

John Hughes

 
Profile Email Website
 Quote
Content generated in: 0.83 seconds
New Topic Post Reply

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