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 |
|
||||||
|
|
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. |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Anonymous: Anonymous |
|
||||||
|
|
it seems do not work...
|
||||||
|
|||||||
| Anonymous: Anonymous |
|
||||||
|
|
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.
|
||||||
|
|||||||
| os |
|
||||||
![]() ![]() ![]() ![]() ![]() Junior ![]() Status: offline ![]() Registered: 04/11/02 Posts: 27 |
|||||||
|
|||||||
| jlhughes |
|
||||||
![]() ![]() ![]() ![]() ![]() 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" 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 |
||||||
|
|||||||
| Content generated in: 0.83 seconds |
|
|
|