MediaWiki bleg
Mar. 24th, 2008 07:27 pmI am annoyed enough at MediaWiki that I'm willing to pay a professional to fix this for me.
Ideally, URLs would look like http://www.optimizelife.com/wiki/Main_Page
SiteGround's installation scripts gave me: http://www.optimizelife.com/wiki/index.php/Main_Page
Changing hosts and installing by hand (with kind help from ehuber) made the URL even worse: http://optimizelife.nfshost.com/wiki/index.php/Main_Page
http://www.mediawiki.org/wiki/Manual:Short_URL has been failing me.
---
I'm not optimistic about being able to restore the wikidb. So at some point, I should make "keyboard+mouse scripts" for backup / restore into text files ("click on Edit, copy the wikitext, paste onto Notepad, etc"). Any idea how to do that?
Ideally, URLs would look like http://www.optimizelife.com/wiki/Main_Page
SiteGround's installation scripts gave me: http://www.optimizelife.com/wiki/index.php/Main_Page
Changing hosts and installing by hand (with kind help from ehuber) made the URL even worse: http://optimizelife.nfshost.com/wiki/index.php/Main_Page
http://www.mediawiki.org/wiki/Manual:Short_URL has been failing me.
---
I'm not optimistic about being able to restore the wikidb. So at some point, I should make "keyboard+mouse scripts" for backup / restore into text files ("click on Edit, copy the wikitext, paste onto Notepad, etc"). Any idea how to do that?
(no subject)
Date: 2008-03-24 11:40 pm (UTC)Let me know if you want more details.
(no subject)
Date: 2008-03-25 12:36 am (UTC)I don't know if I run the server. I am using nearlyfreespeech.net
the "short URL" link also advises changing the .htaccess along with editing the LocalSettings.php to change the links inside the wiki accordingly. But one of the above causes the wiki pages to be inaccessible.
(no subject)
Date: 2008-03-25 12:57 am (UTC)Then you don't. :-)
But one of the above causes the wiki pages to be inaccessible.
Hm. What kind of error do you get? I would suggest that you _first_ change just the .htaccess, and see what happens. That should allow you to access the pages at the short URLs, without breaking the long URLs. If that works, then you can try changing LocalSettings to use only the short URLs.
(no subject)
Date: 2008-03-25 02:40 am (UTC)and yet http://www.optimizelife.com/wiki/ToDo does not work.
http://optimizelife.nfshost.com/wiki/ToDo also does not work.
(no subject)
Date: 2008-03-25 04:03 am (UTC)http://www.optimizelife.com/wiki/?Main_Page
with the excess question-mark, and doesn't help URLs without that question-mark.
I don't really understand the rewrite rules well enough to do anything with them...
(no subject)
Date: 2008-03-26 12:28 am (UTC)and while http://www.optimizelife.com/wiki/ToDo does not work,
http://www.optimizelife.com/ToDo does... which is even shorter(!) but not desired.
I tried to fix this by modifying the rules to:
but this failed.
SUCCESS!
Date: 2008-03-26 12:42 am (UTC).htaccess in htdocs (or public_html):
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ wiki/ [L,QSA] RewriteRule ^/*$ wiki/ [L,QSA]wiki/LocalSettings.php:
Re: SUCCESS!
Date: 2008-03-26 12:54 am (UTC)RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ wiki/index.php?title=Main_Page [PT,L,QSA]http://www.optimizelife.com/wiki/Main_Page works
but
http://www.optimizelife.com/wiki/ works gets redirected to http://optimizelife.nfshost.com/wiki/Main_Page
fixed, by adding
Date: 2008-03-26 02:37 am (UTC)Summarizing, how I got a SHORT URL
Date: 2008-03-26 02:48 am (UTC)RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.+)$ wiki/index.php?title=$1 [PT,L,QSA](2) in LocalSettings.php:
(3) in LocalSettings.php:
(4) Now, editing pages is broken. You will see "Editing Index.php" instead of "Editing ToDo". Here is the fix: