Mailing List Archive

Move wiki to subfolder
Hello!
Maybe someone has a hint for this problem I have:

I'd like to move an existing wiki to another place in my filestructure.
Used to be:
/pages/wiki
/pages/mainsite (is entry point for 'domain.de')

Should be changed to
/pages/mainsite/wiki

My goal: calling the wiki through 'domain.de/wiki'

Mediawiki Version is 1.31.5.
I copied files and directories to the subdirectory. Copied Database Tables to a new Database. Changed the IP path and database variables in localsettings.
I executed update.php on the new copy.

Now when I use the new url path 'domain.de/wiki' the browser will change the url to http://www.domain.de/index.php?title=Hauptseite <http://www.domain.de/index.php?title=Hauptseite> (removing the subfolder 'wiki' from the path),
and show an error message: "The requested URL was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

I then created a new subdomain 'wikinew.domain.de' aiming at the path 'domain.de/wiki'
Now when using this subdomain, the copied wiki opens without error, everything looks fine, login works, page editing works, images are correctly displayed.

Maybe someone can explain the behavior when calling domain.de/wiki?
Did I forget some kind of configuration?

Thanks for your help,
Marcus
Re: Move wiki to subfolder [ In reply to ]
You need to update $wgScriptPath and $wgArticlePath (if it's defined) in
your LocalSettings.php to point to the new paths.

If you've overridden any other "...Path" configuration variables
(unlikely), update them too.

--
Bartosz Dziewo?ski
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
Re: Move wiki to subfolder [ In reply to ]
Thanks a lot,
correctly defining wgScriptPath did help, was set to =„“ before.

Greetings,
Marcus


> Am 11.01.2022 um 01:46 schrieb Bartosz Dziewo?ski <matma.rex@gmail.com>:
>
> You need to update $wgScriptPath and $wgArticlePath (if it's defined) in your LocalSettings.php to point to the new paths.
>
> If you've overridden any other "...Path" configuration variables (unlikely), update them too.
>
> --
> Bartosz Dziewo?ski
> _______________________________________________
> MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
> To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/