
Why: Articles whose titles contain mixed-capitalization words (not all initial caps, or not all lower case except the first word) are found via "Go" only by an exact case match. For example, without the redirect Isle of wight a "Go" for "Isle Of wight" or any capitalization other than exactly 'Isle of Wight' would not find the article Isle of Wight. Other capitalizations, to ensure that "Go" to a mixed-capitalization article title is case-insensitiveĪdding a redirect for mixed-capitalization article titles (e.g., Isle of Wight) allows "Go" to these articles to be case-insensitive.
Mediawiki redirect manual#
DSM-IV redirects to Diagnostic and Statistical Manual of Mental Disorders.5 Don't fix redirects that aren't broken.3 What needs to be done on pages that are targets of redirects?.That will also add the redirect to the category listed in the Category column below. for the redirect page University of Cambridge, To add a reason, select one of the tags from the Tag column below and add it one space after and on the same line as #REDIRECT ]. To go back and edit your redirect after it's working, add &redirect=no to the end of the URL for your redirect. Any text on the same line as the redirect will stay, but will not be visible unless someone edits the page. #REDIRECT ]Įverything after the redirect line will be blanked when you save the page. Please note that you can only redirect to articles, not sections in them although the syntax allows them, e.g.
Mediawiki redirect how to#
The post, How to change your MediaWiki URL, first appeared on Codeopolis.To redirect a page (1) to a different page (2), enter on the top of page 1:įor example, to redirect the Cambridge University page to the University of Cambridge page, edit the Cambridge University page and enter: If you have any questions, please leave a comment below. As you can see, MediaWiki makes it easy to make adjustments to your installation if your domain or server ever changes. In this article you learned how to change your MediaWiki URL and MediaWiki Script Path. It is important to clear your browser cache before you visit your installation of MediaWiki. Once MediaWiki comes back online you can test out your changes.
Mediawiki redirect Patch#
In the example above, you will see the patch is set to /wiki. In order to change the installation path of MediaWiki, edit the $wgScriptPath to your new location. # (like /w/index.php/Page_title to /wiki/Page_title) please see: # For more information on customizing the URLs # defaults for all runtime URL paths are based off of this.

# The URL base path to the directory containing the wiki In the LocalSettings.php file you will need to find the following section: If you move the location of the MediaWiki script files from the current root directory to a different directory on your server, for example a directory named /wiki you will need to make one other minor adjustment to the LocalSettings.php file within your MediaWiki directory. How to change the path of your MediaWiki Installation If you were successful, you will be able to login to your account without any issues. Then, go to the user login page and login. Once you clear your browser cache, visit your MediaWiki installation using the new URL. It is important to clear your browser cache before you visit your installation. Once MediaWiki comes back online you will be able to test your changes. Next, restart your instance of MediaWiki. Then, type y to indicate that you would like to save the file. That’s it!Īfter you finish editing the file, type ctrl+X to close the nano editor. In order to change the Mediawiki URL of your installation, just replace with the domain that you would like to use in its place.

# The protocol and server name to use in fully qualified URLs I prefer to use the nano text editor by running the following command within the root directory. Once you are in the root directory of your MediaWiki installation you can use your favorite text editor to edit the file. We can use a terminal program to SSH into your server in order to access that file. The LocalSettings.php file is a text file that is located in the root directory of your MediaWiki installation. It determines what URL that the pages will point the browser to when you click a link or button within the application. The MediaWiki URL setting is located in the application configuration file. If you are self-hosting a MediaWiki instance, or changing web hosting companies or domains, then occasionally you may need to adjust the MediaWiki URL for the installation in order to keep the application functioning properly. How to change the path of your MediaWiki InstallationĪfter the initial installation, the MediaWiki platform does not have a built-in application administration and configuration section.
