Hi,
I just relocated my site by changing hosting providers. I set up my old site some time ago, but I thought I migrated everything to the new site. On the old site, I could reference pages by the URL /wiki/index.php/<page>, such as http://terminals-wiki.org/wiki/index.php/Category:DEC
Now those URLs aren't working and when I browse the wiki, the URLs are all of the form http://terminals-wiki.org/wiki/index.php?title=Category:DEC
From looking at mediawiki documentation, it seems the preferred way
to make the URLs work again is to use .htaccess and a rewrite rule?
Am I headed in the right direction?
Thanks in advance
Usually this means that mediawiki detects the new server as not supporting PATH INFO (usually deoends on the combination of server software and which php sapi is in use), so it cannot use the automatic short url setup. In such a case you usually need to setup rewrite rules to make it work, although you can also try adjusting $wgUsePathInfo to override the feature support autodetection if you think path info is really supported.
-- Bawolff
On Friday, September 30, 2016, Richard legalize@xmission.com wrote:
Hi,
I just relocated my site by changing hosting providers. I set up my old site some time ago, but I thought I migrated everything to the new site. On the old site, I could reference pages by the URL /wiki/index.php/<page>, such as http://terminals-wiki.org/wiki/index.php/Category:DEC
Now those URLs aren't working and when I browse the wiki, the URLs are all of the form http://terminals-wiki.org/wiki/index.php?title=Category:DEC
From looking at mediawiki documentation, it seems the preferred way to make the URLs work again is to use .htaccess and a rewrite rule?
Am I headed in the right direction?
Thanks in advance
"The Direct3D Graphics Pipeline" free book <
http://tinyurl.com/d3d-pipeline%3E
The Computer Graphics Museum <http://ComputerGraphicsMuseum.org> The Terminals Wiki <http://terminals-wiki.org>
Legalize Adulthood! (my blog) http://LegalizeAdulthood.wordpress.com
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
.htaccess and rewrite rules would be needed for short URLs like http://terminals-wiki.org/wiki/Category:DEC (without the 'index.php' part).
In article CA+oo+DVb5K4MgF4UJxJQpm7C=8eEx-emuLYiox3T82NGSVewdQ@mail.gmail.com, Brian Wolff bawolff@gmail.com writes:
Usually this means that mediawiki detects the new server as not supporting PATH INFO (usually deoends on the combination of server software and which php sapi is in use), so it cannot use the automatic short url setup. In such a case you usually need to setup rewrite rules to make it work, although you can also try adjusting $wgUsePathInfo to override the feature support autodetection if you think path info is really supported.
OK, this sounds like we're moving in the right direction as I don't recall needing a rewrite rule for this before. I will check with my hosting provider.
I don't find $wgUsePathInfo in my LocalSettings.php; I'm currently on MediaWiki 1.17.0, which I recognize is pretty ancient at this point. (http://terminals-wiki.org/wiki/index.php?title=Special:Version)
This was one of the main motivations for changing hosting providers so that I could get the software upgraded. At this point, I've migrated the content and that all seems to work OK except for the form of the URL and one other issue, which I will post here separately.
In article E1bq4dc-0001dz-1t@shell.xmission.com, Richard legalize@xmission.com writes:
This was one of the main motivations for changing hosting providers so that I could get the software upgraded. At this point, I've migrated the content and that all seems to work OK except for the form of the URL and one other issue, which I will post here separately.
The other issue was that some media files weren't showing up properly. This was because the media files have "advertisement" in their name and adblock was marking them with CSS display: none; :-).
In article CA+oo+DVb5K4MgF4UJxJQpm7C=8eEx-emuLYiox3T82NGSVewdQ@mail.gmail.com, Brian Wolff bawolff@gmail.com writes:
Usually this means that mediawiki detects the new server as not supporting PATH INFO (usually deoends on the combination of server software and which php sapi is in use), so it cannot use the automatic short url setup.
I did a test with a simple php script that invoked phpinfo() and verified that PATH_INFO was set properly and appears to be supported on my version of PHP.
Does that just imply that 1.17 is having a hard time with this version of PHP?
In article CA+oo+DVb5K4MgF4UJxJQpm7C=8eEx-emuLYiox3T82NGSVewdQ@mail.gmail.com, Brian Wolff bawolff@gmail.com writes:
Usually this means that mediawiki detects the new server as not supporting PATH INFO (usually deoends on the combination of server software and which php sapi is in use), so it cannot use the automatic short url setup. In such a case you usually need to setup rewrite rules to make it work, although you can also try adjusting $wgUsePathInfo to override the feature support autodetection if you think path info is really supported.
Thanks for pointing me in the right direction. On the previous site, the default value worked fine (enabling use of PATH_INFO). For whatever reason the detection logic in 1.17 doesn't work properly in my new environment. I verified that PATH_INFO is indeed set and adding
$wgUsePathInfo = true;
to my LocalSettings.php corrected the issue.
MediaWiki truly has a great community full of very helpful people. It's one of the things that makes this package really great!
Thanks again.
mediawiki-l@lists.wikimedia.org