Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Redirect whole namespace
Avatar
og #1
Member since May 2006 · 426 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Subject: Redirect whole namespace
Hello,
i've reorganized my Wiki so some whole namespaces do not exist anymore. To keep users from frustation i'd like to redirect them to the new namespace. So what i need to do is to redirect every pagerequest to any page/subnamespace-page to the new one.

In know the redirect plugins for redirecting single pages, but not for whole namespaces. Only way i know is to use rewrite-plugin of apache (.htaccess) which is somewhat complicated.

Do you know any way to do it inside Dokuwiki itself?
Oli...
Avatar
og #2
Member since May 2006 · 426 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Well, finally i found a solution myself :-)
The two plugins https://www.dokuwiki.org/plugin:redirect and https://www.dokuwiki.org/plugin:404manager are very promising. I've used the "redirect" with the "wildcard-patch" given on the plugin-page. It will redirect whole namespaces (with all subnamespaces) to a given page, or another namespace (if documentname is kept). Really nice and handy.
The other one, the 4040manager can also make suggestions for the user, to find the best match to his searched page-ID. Not always needed, but very good idea!
Oli...
Avatar
turnermm (Moderator) #3
Member since Oct 2009 · 4399 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Good to know about.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
og #4
Member since May 2006 · 426 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
But, there are some drawbacks though. I found out that using the 404redirect plugin in kombination with the translation plugin is a bit tricky. The translation-plugin redirects to an nonexisting page to offer the user to create a new translation by editing this page.
But here, the redirect catches the call :-/ Must play around with it.
Oli...
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: 2018-12-15, 00:02:25 (UTC +01:00)