Manual talk:Short URL/wiki/Page title -- No hidden subdirectory, no root access

From MediaWiki.org
Jump to: navigation, search

Contents

[edit] No input file specified

i get error - "No input file specified." where the main page should be. php 5.2.5 --Emesee 04:37, 23 January 2008 (UTC)

hmm, actually i've got the same --Redsunrising 02:22, 12 February 2008 (UTC)
I think there may be some sever configuration-specific issues. Another MediaWiki user with whom I share notes tried my method and found that it worked for him when setting $wgUsePathInfo = true instead of false. You might try this and see if it resolves the issue. --(original author of the method)66.250.7.162 18:50, 18 February 2008 (UTC)

[edit] Works with regular pages, but not with pages that have (:) Colon in the name

After adding this to my wiki it works, except for pages that include colon (:) in the name. So all pages like Special:xxxx or Category:xxx do not work. Can anyone help me to fix the rewrite for this. or is there a better solution? --TurboKanne 09:07, 21 February 2008 (UTC)

[edit] Works for me

Special pages with colons are working fine for me - could be something that's changed in a newer version (?) I'm using MediaWiki 1.14 and special URLs are working OK. (2009-06-06)

Try adding the index.php back into your URL for these special pages. i.e.: http://domain.com/index.php/Special:UserRights <-- this should still work (?)

[edit] Redirect loop detected!

Internal error

Redirect loop detected!

This means the wiki got confused about what page was requested; this sometimes happens when moving a wiki to a new server or changing the server configuration.

Your web server was detected as possibly not supporting URL path components (PATH_INFO) correctly; check your LocalSettings.php for a customized $wgArticlePath setting and/or toggle $wgUsePathInfo to true.

I edited LocalSettings.php to change:

$wgUsePathInfo = false;
=>
$wgUsePathInfo = true;

Now I can surf, but editing a page always edits Index.php

I solve it using the same method. what do you mean by "Now I can surf, but editing a page always edits Index.php"?

I also solved it by switching the $wgUsePathInfo to TRUE, not false. This should be updated.

[edit] MediaWiki 1.14 the latest wiki.

I did this method on the latest MediaWiki. When unregistered or registered newbie clicks on a link that is not edited it redirects to some random page called megaclick. How do I resolve that. Sachein 06:49, 26 March 2009 (UTC)

If I had to guess, I'd say "megaclick" has vandalized your wiki. User: MatthewJenkins 06 June 2009

[edit] thank you author

Thanks for adding this guide. This helped me get shortURLs running in about 8 seconds.


Agreed!! Seems to work okay with colons and plus signs and just about everything I throw at it. -Another person.

[edit] robots.txt

URL rewrites work perfectly in 1.17, but can't access robots.txt. 82.3.159.50 16:21, 25 September 2011 (UTC)

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox