techyone 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.
schplurtz 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.
cziehr 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.
techyone 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!
michaelsy schplurtz:1557897623 wrote 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.
techyone 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.
michaelsy @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!