Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Removing "start" namespace
Avatar
teddydoors #1
Member for 2 weeks · 14 posts
Group memberships: Members
Show profile · Link to this post
Subject: Removing "start" namespace
I'm a new Dokuwiki user. I installed one farm wiki site with several animals.

The cool thing is that all animals have a neat subdomain, let's say      banana.fruitwikis.com.
The bullshit thing is that all wikis have to have a start page. Of course, they must have. But then it creates messy homepages.

Now the farmer wiki is fruitwikis.com/start, or you can change into another messy URL like fruitwikis.com/go or fruitwikis.com/home.
And all the animal wikis have the same messy styles banana.fruitwikis.com/start, pineapple.fruitwikis.com/start ....

Imagine the wikis in different languages    gohan.tabemono.com/hajimete, or  gohan.tabemono.com/start or gohan.tabemono.com/home or gohan.tabemono.com/homu.

Why on earth do we have to have such messy things entailed?
Avatar
pop #2
Member since Nov 2016 · 205 posts
Group memberships: Members
Show profile · Link to this post
Quote by teddydoors:
I'm a new Dokuwiki user.
....

Why on earth do we have to have such messy things entailed?

Do we? I, too, have a farm where each wiki is addressed as a subdomain. My users just call http://wiki.mydomain.ch, without giving any page name.
Avatar
teddydoors #3
Member for 2 weeks · 14 posts
Group memberships: Members
Show profile · Link to this post
Hi,

Does Google index your site simply as http://wiki.mydomain.ch or there are something else like http://wiki.mydomain.ch/start ?
When you click on the subdomain wiki logo, where does it lead to? http://wiki.mydomain.ch or http://wiki.mydomain.ch/start ?
Avatar
teddydoors #4
Member for 2 weeks · 14 posts
Group memberships: Members
Show profile · Link to this post
Here is a live example I found.

Website: http://openwiki.kr

His farm homepage is  http://openwiki.kr//home (don't know why he put two slashes here)

His animal wikis:   http://openwiki.kr/game/home and http://openwiki.kr/med/home

And a random animal offspring wiki pages: http://openwiki.kr/game/eve/home


In a nutshell, a homepage of http://openwiki.kr should be http://openwiki.kr, not http://openwiki.kr//home !!!
Avatar
turnermm (Moderator) #5
Member since Oct 2009 · 4722 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I'm not sure this is what you are looking for, but you can use a redirect.  A simple one is what I use for https://mturner.org
<?php
# index.php
header("Location: devel/doku.php");
?>
This goes in the document root (the top level directory to which your urls are directed.
So:
[document root directory]
index.php
  devel [wiki directory]
    bin
    conf
    data
     :
     :
    .htaccess
    doku.php
     :
     :
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
teddydoors #6
Member for 2 weeks · 14 posts
Group memberships: Members
Show profile · Link to this post
Thank you for replying.

This "start" namespace issue is particularly important in SEO. Now I think I want to edit the source code. I need to change the so-called DOKU_BASE syntax. But I do not know which file I need to edit. It should be in the header section where the site logo is coded/configured.


Redirect option is the last resort.
Avatar
teddydoors #7
Member for 2 weeks · 14 posts
Group memberships: Members
Show profile · Link to this post
Well, I found it finally. The file name is tpl_header.php which is inside tpl folder.

Here's what I changed, just in case someone else may have the same concern.


 tpl_link(
                DOKU_BASE,
                '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>',
                'accesskey="h" title="[H]"'
            );
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-11-12, 05:42:44 (UTC +01:00)