Manual talk:Short URL

Jump to: navigation, search

About this board

READ THIS FIRST IF YOU HAVE A TECHNICAL QUESTION This talk page is not very active. You probably WILL NOT get an answer to your question. It is better to go to MediaWiki_on_IRC where there are live people 24/7, and ask your question there. Odessaukrain 00:26, 9 October 2007 (UTC)

  • HOUSE KEEPING Begin removing nonworking short URL solution links from the main page to the talk page until someone speaks up and says these nonworking Short URL solution links actually work
  • WRITING Using the best portions of the main page as inspiration, begin writing a comprensive and easy to understand manual on how to create a short webpage addess [url].



80.255.7.101 (talkcontribs)

I hope anyone can help me. I have a hosted webspace and I have installed MediaWiki without any extensions in https://abcd.com/wiki

when go on the set I will be redirected to https://abcd.com/wiki/index.php/Hauptseite (it is a german wiki). But I want the short url https://abcd.com/wiki/Hauptseite

I have made a .htaccess File in the https://abcd.com/wiki/ folder with this:

RewriteEngine On

RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1 [PT,L,QSA]

RewriteRule ^wiki/*$ wiki/index.php [L,QSA]

RewriteRule ^wiki$ wiki/index.php [L,QSA]

And in the LocalSettings.php I set:

$wgScriptPath = "/wiki";

$wgArticlePath = "$wgScriptPath/$1";

When I now go the wiki I get the error I will redirected to https://abcd.com/wiki/Hauptseite

and get this error:

Not Found

The requested URL /wiki/Hauptseite 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 have no more ideas... Thank you for help a frustrated man ;)

Reply to "Short Url on MediaWiki on cPanel"
217.93.28.218 (talkcontribs)

hi,

my site previously had the following structure

http://example.de/Main_Page

Now I have changed it with Localsettings und htaccess to the following structure

http://example.de/wiki/Main_Page

htaccess configuration:

# Enable the rewrite engine

RewriteEngine On

# Short url for wiki pages

RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

# Redirect / to Main Page

RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]

Localsettings

$wgScriptPath = "/w";

$wgArticlePath = "/wiki/$1";

$wgUsePathInfo = true;

Now I want all my Pages of the old structure to be redirected to the new one. But do not know how to do that.

34/5000

all pages with the old structure

Now I would like for all sides a forwarding to the new path

Example:

http://example.de/Page1 should redirected to http://example.de/wiki/Page1

http://example.de/Page2 should redirected to http://example.de/wiki/Page2

http://example.de/Page3 should redirected to http://example.de/wiki/Page3

etc.....

Also, the paths of the pictures should be redirected. Previously, I had the following structure

"http://example.de/images", but now I would like to have a redirection for all my images to the new Path "http://example.de/w/images".

can someone help?

217.93.28.218 (talkcontribs)

***Now I want all my pages with the old structure to be redirected to the new one.

Example:

http://example.de/Page1 should redirected to http://example.de/wiki/Page1

http://example.de/Page2 should redirected to http://example.de/wiki/Page2

http://example.de/Page3 should redirected to http://example.de/wiki/Page3

etc.....

Also, the paths of the pictures should be redirected. Previously, I had the following structure

"http://example.de/images", but now I would like to have a redirection for all my images to the new Path "http://example.de/w/images".

can someone help?

Reply to "redirect Pages & Images"
Danaien (talkcontribs)

Hi.

I have a few subdomains and one of them is my wiki. I see only a single file called in htaccess in the main folder ("above" subdomains) and I wonder if I will break other sites on other subdomains if I use this fiel with shorturls.redwerks.org/. The other ones are wordpress sites which already use short links of their types.

Maybe I have to create such file inside wiki subdomain folder?

Reply to ".htaccess and subdomains"

virtual path conflicts with the real path myth

1
Tessus (talkcontribs)

The Short URL page states:

A common beginner's mistake is to install MediaWiki itself (the source code, not the short url) in /wiki instead of /w. Once installed they would realize the mistake when trying to configure Short URLs (which would become difficult as the virtual path then conflicts with the real path).

However, I'm a bit puzzled as to why that is. I am using /wiki for both and my short URL setup works just fine. Can someone please explain to me who came up with the myth that the virtual path would conflict with the real path and why?

Reply to "virtual path conflicts with the real path myth"

How to do a wiki-family with short URLs?

1
Rob Kam (talkcontribs)

How to set this up when hosting more than one wiki on the same server, i.e. with a wiki-family?

Reply to "How to do a wiki-family with short URLs?"

Does not work with Special:Pages and others

1
176.199.41.215 (talkcontribs)

Hey guys! looking forward to some help. I installed it like described on the Manuel installation pages for apache.

I got one problem: it does not work with "Special:Pages" and others.

Reply to "Does not work with Special:Pages and others"

Don't Name Your Folder 'mediawiki' Either

1
Shooshosha (talkcontribs)

After many hours of trying to get the short URL to work, apparently using your folder (e.g. {WEBROOT}/mediawiki) does not play nicely with the rewrite on IIS 8.5 as far as I can tell.

Everything else will work if the folder is mediawiki just not any of the rewrite mechanics.

Reply to "Don't Name Your Folder 'mediawiki' Either"
86.126.188.13 (talkcontribs)

Noticed that mediawiki.org and wikipedia.org have complete redirect: https://www.mediawiki.org/w/index.php?title=Article goes directly tohttps://www.mediawiki.org/wiki/Article

On a normal wiki with rewrite rules that doesn't happen.

Any help would be greatly appreciated

Ciencia Al Poder (talkcontribs)
Cammy26 (talkcontribs)

webite: http://wiki.tumblenet.tk

I folloed the short url builder and i get this;

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@wiki.tumblenet.tk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


my htaccess and local settigs.php

.htaccess

RewriteEngine On

RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

Localsettings.php

<?php

# This file was automatically generated by the MediaWiki 1.26.3

# installer. If you make manual changes, please keep track in case you

# need to recreate them later.

#

# See includes/DefaultSettings.php for all configurable settings

# and their default values, but don't forget to make changes in _this_

# file, not there.

#

# Further documentation for configuration settings may be found at:

# https://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry

if ( !defined( 'MEDIAWIKI' ) ) {

exit;

}

## Uncomment this to disable output compression

# $wgDisableOutputCompression = true;

$wgSitename = "Tumble Netpedia";

$wgMetaNamespace = "Tumble_Netpedia";

## The URL base path to the directory containing the wiki;

## defaults for all runtime URL paths are based off of this.

## For more information on customizing the URLs

## (like /w/index.php/Page_title to /wiki/Page_title) please see:

## https://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = "/w";

$wgScriptExtension = ".php";

$wgArticlePath = "/wiki/$1";

$wgUsePathInfo = true;

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://wiki.tumblenet.tk";

$wgScriptExtension = ".php";

## The URL path to static resources (images, scripts, etc.)

$wgResourceBasePath = $wgScriptPath;

## The URL path to the logo.  Make sure you change this from the default,

## or else you'll overwrite your logo when you upgrade!

$wgLogo = "http://wiki.tumblenet.tk/w/wiki-logos/logo-normal.png";

## UPO means: this is also a user preference option

$wgEnableEmail = true;

$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "noreply@wiki.tumblenet.tk";

$wgPasswordSender = "noreply@wiki.tumblenet.tk";

$wgEnotifUserTalk = true; # UPO

$wgEnotifWatchlist = true; # UPO

$wgEmailAuthentication = true;

## Database settings

$wgDBtype = "mysql";

$wgDBserver = "localhost";

$wgDBname = "###";

$wgDBuser = "###*";

$wgDBpassword = "###";

# MySQL specific settings

$wgDBprefix = "mediawiki_";

# MySQL table options to use during installation or update

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 5.0.

$wgDBmysql5 = false;

## Shared memory settings

$wgMainCacheType = CACHE_ACCEL;

$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory

## is writable, then set this to true:

$wgEnableUploads = true;

$wgGenerateThumbnailOnParse = false;

#$wgUseImageMagick = true;

#$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from https://commons.wikimedia.org

$wgUseInstantCommons = true;

## If you use ImageMagick (or any other shell command) on a

## Linux server, this will need to be set to the name of an

## available UTF-8 locale

$wgShellLocale = "en_US.utf8";

## If you want to use image uploads under safe mode,

## create the directories images/archive, images/thumb and

## images/temp, and make them all writable. Then uncomment

## this, if it's not already uncommented:

#$wgHashedUploadDirectory = false;

## Set $wgCacheDirectory to a writable directory on the web server

## to make your wiki go slightly faster. The directory should not

## be publically accessible from the web.

#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/Names.php

$wgLanguageCode = "en-gb";

$wgSecretKey = "###";

# Site upgrade key. Must be set to a string (default provided) to turn on the

# web installer while LocalSettings.php is in place

$wgUpgradeKey = "###";

## For attaching licensing metadata to pages, and displaying an

## appropriate copyright notice / icon. GNU Free Documentation

## License and Creative Commons licenses are supported so far.

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright

$wgRightsUrl = "https://creativecommons.org/licenses/by-sa/3.0/";

$wgRightsText = "Creative Commons Attribution-ShareAlike";

$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png";

# Path to the GNU diff3 utility. Used for conflict resolution.

$wgDiff3 = "";

## Default skin: you can change the default skin. Use the internal symbolic

## names, ie 'vector', 'monobook':

$wgDefaultSkin = "vector";

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'CologneBlue' );

wfLoadSkin( 'Modern' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Vector' );

# Enabled Extensions. Most extensions are enabled by including the base extension file here

# but check specific extension documentation for more details

# The following extensions were automatically enabled:

wfLoadExtension( 'Cite' );

wfLoadExtension( 'CiteThisPage' );

wfLoadExtension( 'ConfirmEdit' );

wfLoadExtension( 'Gadgets' );

wfLoadExtension( 'ImageMap' );

wfLoadExtension( 'InputBox' );

wfLoadExtension( 'Interwiki' );

wfLoadExtension( 'LocalisationUpdate' );

wfLoadExtension( 'Nuke' );

wfLoadExtension( 'ParserFunctions' );

wfLoadExtension( 'PdfHandler' );

wfLoadExtension( 'Poem' );

wfLoadExtension( 'Renameuser' );

wfLoadExtension( 'SpamBlacklist' );

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

wfLoadExtension( 'TitleBlacklist' );

wfLoadExtension( 'WikiEditor' );

# End of automatically generated settings.

# Add more configuration options below.

// Define constants for Portal namespaces.

define("NS_PORTAL", 3000); // This MUST be even.

define("NS_PORTAL_TALK", 3001); // This MUST be the following odd integer.

// Add namespaces.

$wgExtraNamespaces[NS_PORTAL] = "Portal";

$wgExtraNamespaces[NS_PORTAL_TALK] = "Portal_talk"; // Note underscores in the namespace name.

# Extension:Scribunto

require_once "$IP/extensions/Scribunto/Scribunto.php";

$wgScribuntoDefaultEngine = 'luastandalone';

$wgScribuntoUseGeSHi = true;

$wgScribuntoUseCodeEditor = true;

# Extension:CodeEditor

wfLoadExtension( 'CodeEditor' );

# Extension:TemplateData

wfLoadExtension( 'TemplateData' );

// Set this to true to enable the TemplateData GUI editor

$wgTemplateDataUseGUI = false;

Ciencia Al Poder (talkcontribs)

You should look at the server's error log, as the error page displays, since that page doesn't give details about the cause of the error. It may be a bad syntax or incompatible setting in .htaccess or LocalSettings.php

Reply to "Internal Server Error"

Blank Page after follow Other how-to mini-guides

9
Yakusa47 (talkcontribs)

These methods require that you have access to the server configuration. If you are on a shared host, you most likely don't. In this case you will be required to use a method that requires "no root access". You can jump directly to the MediaWiki ShortURL Builder tool and follow the on screen instructions after clicking on "I don't have root access".

Recommendation from MediaWiki ShortURL Builder: These instructions can be used to configure the wiki at http://hmipedia.org/index.php?title=Halaman_Utama with the article path "/wiki/$1" giving you urls like http://hmipedia.org/wiki/Main_Page. If you want a different article path you can fill in a new one here Article Path:/wiki/$1

/.htaccess RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

/LocalSettings.php

    1. The URL base path to the directory containing the wiki;
    2. defaults for all runtime URL paths are based off of this.
    3. For more information on customizing the URLs please see:
    4. http://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = ""; $wgScriptExtension = ".php"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true;

    1. To enable image uploads, make sure the 'images' directory
    2. is writable, then set this to true:

$wgEnableUploads = true; $wgGenerateThumbnailOnParse = false;

Server type: Apache Path to index.php:/index.php

Mediawiki version:MediaWiki 1.24 (upgrade from 1.20)

After edit and safe of .htaccess and LocalSettings.php, mywiki generate url like this http://hmipedia.org/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/Halaman_Utama

After refresh page some times, my wiki becomes blank page. I deleted .htaccess and revert back LocalSettings.php my wiki can be accessed again http://hmipedia.org/index.php?title=Halaman_Utama.

I am not sure about this. Am I wrong in implement those guide? Thanks for your help.

Dantman (talkcontribs)

Could you show me the actual .htaccess and LocalSettings.php config you used?

(This time wrap them in <pre></pre> tags.)

Yakusa47 (talkcontribs)

Actual LocalSettings.php

<?php
# This file was automatically generated by the MediaWiki 1.20.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
	exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename      = "HMIpedia";
$wgMetaNamespace = "HMIpedia";

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
## $wgArticlePath      = "/$1 #or "{$wgScript}/$1"; or "wiki/$1";
## $wgUsePathInfo      = true;
$wgScriptPath       = "";
$wgScriptExtension  = ".php";


## The protocol and server name to use in fully-qualified URLs
$wgServer           = "http://hmipedia.org";

## The relative URL path to the skins directory
$wgStylePath        = "$wgScriptPath/skins";

## The relative URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
# $wgLogo = "$wgScriptPath/resources/assets/wiki.png";
$wgLogo = "{$wgScriptPath}/Lambang_HMI2.jpg";

## UPO means: this is also a user preference option

$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO

$wgEmergencyContact = "admin@hmipedia.org";
$wgPasswordSender   = "admin@hmipedia.org";

$wgEnotifUserTalk      = true; # UPO
$wgEnotifWatchlist     = true; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "mydbname";
$wgDBuser           = "mydbuser";
$wgDBpassword       = "mydbpassword";

# MySQL specific settings
$wgDBprefix         = "id"; # id

# MySQL table options to use during installation or update
$wgDBTableOptions   = "ENGINE=MyISAM, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;

## Shared memory settings
$wgMainCacheType    = CACHE_NONE;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgGenerateThumbnailOnParse = false;

# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons  = true;

## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "id";

$wgSecretKey = "xxx";

# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "xxx";

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl  = "http://creativecommons.org/licenses/by-sa/3.0/";
$wgRightsText = "Creative Commons Attribution Share Alike";
$wgRightsIcon = "{$wgStylePath}/common/images/cc-by-sa.png";

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";

# Enabled skins.
# The following skins were automatically enabled:
require_once "$IP/skins/CologneBlue/CologneBlue.php";
require_once "$IP/skins/Modern/Modern.php";
require_once "$IP/skins/MonoBook/MonoBook.php";
require_once "$IP/skins/Vector/Vector.php";


# End of automatically generated settings.
# Add more configuration options below.

# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require_once( "$IP/extensions/Gadgets/Gadgets.php" );
require_once( "$IP/extensions/Nuke/Nuke.php" );
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
require_once( "$IP/extensions/Renameuser/Renameuser.php" );
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );

require_once( "$IP/extensions/Cite/Cite.php" );
require_once("$IP/extensions/ImageMap/ImageMap.php");
require_once("$IP/extensions/AbuseFilter/AbuseFilter.php");
require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";

## AutoConfirm Configuration
$wgAutoConfirmAge = 86400*3;
$wgAutoConfirmCount = 5;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['autoconfirmed']['createpage'] = true;

## QuestyCaptcha Configuration
require_once("$IP/extensions/ConfirmEdit/QuestyCaptcha.php"); 
$wgCaptchaClass = 'QuestyCaptcha';
$wgCaptchaQuestions[] = array( 'question' => 'A question?', 'answer' => 'An answer!' );
$wgCaptchaQuestions[] = array( 'question' => 'Siapakah nama pendiri HMI?', 'answer' => 'Lafran Pane' );
$wgCaptchaQuestions[] = array( 'question' => "Apakah nama situs wiki ini?", 'answer' => "$wgSitename" );
$wgCaptchaQuestions[] = array( 'question' => 'Tuliskan kata rahasia, "5 februari", disini:', 'answer' => '5 februari' );
$wgCaptchaQuestions[] = array( 'question' => 'Tahun berapa HMI berdiri?', 'answer' => '1947' );
$wgCaptchaQuestions[] = array( 'question' => 'Siapakah nama ketua umum pbhmi yang juga pernah menjabat ketua umum partai demokrat?', 'answer' => 'Anas Urbaningrum' );
$wgCaptchaQuestions[] = array( 'question' => 'Huruf "I" dalam gambar ini singkatan dari? <img src="http://hmipedia.org/wiki/Berkas:Lambang_HMI.jpg" alt="" title="Himpunan Mahasiswa Islam" />', 'answer' => 'Islam' );

## ConfirmEdit skipcaptcha
$wgGroupPermissions['*'            ]['skipcaptcha'] = false;
$wgGroupPermissions['user'         ]['skipcaptcha'] = false;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
$wgGroupPermissions['bot'          ]['skipcaptcha'] = true; // registered bots
$wgGroupPermissions['sysop'        ]['skipcaptcha'] = true;

## ConfirmEdit confirmed their email
$wgGroupPermissions['emailconfirmed']['skipcaptcha'] = true;
$ceAllowConfirmedEmail = true;

$wgCaptchaTriggers['edit']          = false; 
$wgCaptchaTriggers['create']        = true; 
$wgCaptchaTriggers['addurl']        = true; 
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin']      = true;

$wgCaptchaTriggersOnNamespace[NS_TALK]['addurl'] = false;
$wgCaptchaTriggersOnNamespace[NS_PROJECT]['edit'] = true;

$wgGroupPermissions['user']['skipcaptcha'] = true; 
$wgCaptchaTriggers['edit'] = true;

## restrict account creation, cabut larangan ini setelah selesai membersihkan spam.
$wgGroupPermissions['*']['createaccount'] = false;

Deleted .htaccess:

RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

Thank you for your reply and help.

Dantman (talkcontribs)

I don't see the wgArticlePath or any other part of the LocalSettings.php config you were given in there.

Though that's strange since that shouldn't cause the /wiki/Wiki/wiki/Wiki/.

Yakusa47 (talkcontribs)

Following guide on MediaWiki ShortURL Builder (http://shorturls.redwerks.org/?articlepath=%2Fwiki%2F%241&source=userdata&thumb_handler=1&fcgi_params=%2Fetc%2Fnginx%2Ffastcgi_params&url=http%3A%2F%2Fhmipedia.org%2Findex.php%3Ftitle%3DHalaman_Utama&fcgi_pass=127.0.0.1%3A9000&server=apache&has_root=&mod_php=on&script=%2Findex.php&hashed_uploads=on)

With this setting and recommendation:

These instructions can be used to configure the wiki at http://hmipedia.org/index.php?title=Halaman_Utama with the article path "/wiki/$1" giving you urls like http://hmipedia.org/wiki/Main_Page. If you want a different article path you can fill in a new one here.
Article Path: /wiki/$1
Include 404 thumbnail handler config
Server type : Apache
I don't have root access, please use .htaccess files. 


.htaccess according to MediaWiki ShortURL Builder

RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

4 lines in LocalSettings.php according to MediaWiki ShortURL Builder

$wgArticlePath      = "wiki/$1";
$wgUsePathInfo      = true;
$wgEnableUploads  = true;
$wgGenerateThumbnailOnParse = false;

And the result of my mediawiki site like this:

http://hmipedia.org/wiki/wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Halaman_Utama
Dantman (talkcontribs)
$wgArticlePath      = "wiki/$1";

$wgArticlePath must begin with /, that would cause your bug.

Yakusa47 (talkcontribs)

Thank you Daniel, it help me out.

I Found something else that make me confuse.

Compare this:

## QuestyCaptcha Configuration
require_once("$IP/extensions/ConfirmEdit/QuestyCaptcha.php"); 
$wgCaptchaClass = 'QuestyCaptcha';
$wgCaptchaQuestions[] = array( 'question' => 'A question?', 'answer' => 'An answer!' );
$wgCaptchaQuestions[] = array( 'question' => 'Siapakah nama pendiri HMI?', 'answer' => 'Lafran Pane' );
$wgCaptchaQuestions[] = array( 'question' => "Apakah nama situs wiki ini?", 'answer' => "$wgSitename" );
$wgCaptchaQuestions[] = array( 'question' => 'Tuliskan kata rahasia, "5 februari", disini:', 'answer' => '5 februari' );
$wgCaptchaQuestions[] = array( 'question' => 'Tahun berapa HMI berdiri?', 'answer' => '1947' );
$wgCaptchaQuestions[] = array( 'question' => 'Siapakah nama ketua umum pbhmi yang juga pernah menjabat ketua umum partai demokrat?', 'answer' => 'Anas Urbaningrum' );
$wgCaptchaQuestions[] = array( 'question' => 'Huruf "I" dalam gambar ini singkatan dari? <img src="http://hmipedia.org/wiki/Berkas:Lambang_HMI.jpg" alt="" title="Himpunan Mahasiswa Islam" />', 'answer' => 'Islam' );

With this:

## QuestyCaptcha Configuration
require_once("$IP/extensions/ConfirmEdit/QuestyCaptcha.php"); 
$wgCaptchaClass = 'QuestyCaptcha';
$wgCaptchaQuestions[] = array( 'question' => "Siapakah nama pendiri HMI?", 'answer' => "Lafran Pane" );
$wgCaptchaQuestions[] = array( 'question' => "Dimanakah HMI didirikan?", 'answer' => "Yogyakarta" );
$wgCaptchaQuestions[] = array( 'question' => "Kapan HMI berdiri tanggal masehi dengan tahunnya?", 'answer' => "5 Februari 1947" );
$wgCaptchaQuestions[] = array( 'question' => "Kapan HMI berdiri tanggal hijriyah dengan tahunnya?", 'answer' => "14 Rabiul Awal 1366" );
$wgCaptchaQuestions[] = array( 'question' => "Siapakah nama Ketua Umum PBHMI yang juga pernah menjabat Ketua Umum Partai Demokrat?", 'answer' => "Anas Urbaningrum" );
$wgCaptchaQuestions[] = array( 'question' => "Siapakah nama Ketua Umum PBHMI yang juga pernah menjabat Ketua Umum Partai Golkar", 'answer' => "Akbar Tandjung" );
$wgCaptchaQuestions[] = array( 'question' => "Siapakah nama alumni HMI yang pernah menjabat Wakil Presiden Republik Indonesia", 'answer' => "Jusuf Kalla" );
$wgCaptchaQuestions[] = array( 'question' => "Huruf I dalam HMI singkatan dari", 'answer' => "Islam" );

The first one reproduce this error:

[31-Mar-2015 11:11:12 UTC] PHP Parse error:  syntax error, unexpected 'question' (T_STRING), expecting ')' in /home/yakusa47/public_html/hmipedia.org/LocalSettings.php on line 167
[31-Mar-2015 11:11:53 UTC] PHP Parse error:  syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' in /home/yakusa47/public_html/hmipedia.org/LocalSettings.php on line 167

The second one solve the problem, "quote and double quote".

Than I try to add/edit page, but reproduce this error:

http://hmipedia.org/index.php?title=Teuku_Taufiqulhadi&action=submit

Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I am not sure how to solve this one. Thanks for your reply and help.

Dantman (talkcontribs)

This is an unrelated error related to mod_security.

Talk to your hosting provider.

Clearing cookies for your website might fix the problem for you.

Cammy26 (talkcontribs)

Woah cool look at all the wikis :D

Reply to "Blank Page after follow Other how-to mini-guides"