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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |