Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
redirect (links), everything from one server to another
Avatar
turnermm (Moderator) #1
Member since Oct 2009 · 4690 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
You should be able to do this in .htaccess.  See: https://httpd.apache.org/docs/2.4/rewrite/remapping.html#m…

The simplest is RedirectMatch:
RedirectMatch "^/wiki_old_dir/(.*)" "http://example.com/wiki_new_dirl/$1"

Any links directed to the old will be redirected to the new, assuming that you have retained the same directory structure and pages.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Samana Johann #2
Member since Jun 2018 · 174 posts · Location: Aural/Cambodia
Group memberships: Members
Show profile · Link to this post
Guessing Johan searches for a way to put a link on the old pages to the new destiny: Probably not easy without much creativity. So far no tool found that would bring the own url or/and filename into the text of the textfile, which could the be replaced with batchedit-plugin.

Possible needed to make local, using command or other tools to bring the filename into the text-file. At least the way my person did for similar issue.
Avatar
StarArmy #3
Member since Nov 2011 · 83 posts
Group memberships: Members
Show profile · Link to this post
The redirect plugin allows for redirects to external URLs and supports wildcards. See https://www.dokuwiki.org/plugin:redirect for documentation.
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-24, 00:29:59 (UTC +02:00)