Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Splash page different from rest of website
Avatar
techyone #1
Member for 3 months · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Splash page different from rest of website
I'd like to use a splash page on my website that is different from the rest of the website.  The splash page is very simple, so I don't need it to reside in DokuWiki, so DokuWiki could reside in a sub-directory.

However, if I use a sub-directory, then I have url page links like www.example.com/subdirectory/page instead of just www.example.com/page.  I can do this, but it just looks messy due to the content of the website.

I also know that I could just use url masking. However, I would have to do that for every page, and I'm not quite sure if that even works for all the links within the website (using dokuwiki linking).  I don't have DokuWiki installed on this website yet, so I don't want to go through the entire process just to find out it isn't going to work.  If someone knows that it will or not, that would be great. 

There may even be a plugin already out there?  I see "multisite" but it's very old and not updated.

I bet there's an easy solution I'm not thinking about?   I didn't find anything in a search of the forums on this.
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 459 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hi,
I don't see any particular problem. Keep your wiki at the root of your site, and add your start page as index.html in the same directory as Doku. That should work.
Eventually, you may use one of the redirect plugins to redirect :start to /index.html. mredirect is really easy to use.
Avatar
cziehr #3
Member since Jan 2011 · 591 posts · Location: 10119 Berlin
Group memberships: Members
Show profile · Link to this post
It depends on the behaviour of your webserver software.

If you use apache, the default is that the server first looks at index.html or index.htm and after that at index.php
So if a index.html file is in your directory, it will be loaded instead of index.php
So this could be your solution, like schplurtz said already before.
Avatar
techyone #4
Member for 3 months · 4 posts
Group memberships: Members
Show profile · Link to this post
Thank you, I didn't think about that as an option. That's easy to test out.  I'll give it a try and if I don't back here again in this thread, then it likely worked.

Thanks!
Avatar
Michaelsy #5
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Quote by schplurtz on 2019-05-15, 07:20:
Keep your wiki at the root of your site, and add your start page as index.html in the same directory as Doku. That should work.

It works for me. I tried it in one of my DokuWiki test installations. I just added the index.html page.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
techyone #6
Member for 3 months · 4 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #4
This does work if you aren't using "RewriteEngine on" in your htaccess.

However, I don't know enough about htaccess to have figured out how to get it to work right with RewriteEngine on.  I tried a few things, but they didn't seem to work like I expected.

When using RewriteEngine on, the following lines are the ones that cause it to not work:

RewriteRule ^$                        doku.php  [L]
RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
RewriteRule ^index.php$               doku.php


After trying some modifications to those, I can almost get it to work, but I have some errors on pages.

I'm going to try again later, but posting here first in case anyone knows the solution for rewriting those lines.
Avatar
Michaelsy #7
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
@techyone, I assume that this change is necessary:

old:
RewriteRule ^$            doku.php  [L]
new:
RewriteRule ^$            index.html  [L]

Otherwise, as given in .htaccess.dist
But without warranty, I didn't check this!
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
techyone #8
Member for 3 months · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: SOLVED
@Michaelsy,

That worked.  Problem has been solved. 

Thank you so much!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-19, 22:44:13 (UTC +02:00)