Mediawiki Fix Internal Server Host Names / Redirection In shared Hosting or Proxy Setup

Mediawiki Fix Internal Server Host Names / Redirection In shared Hosting or Proxy Setup

If you are running MediaWiki on a shared hosting service or behind a proxy server and you are experiencing issues with internal server host names or redirection, there are a few steps you can try to fix the problem:

  1. Check the value of the $wgServer setting in your LocalSettings.php file. This setting specifies the protocol and server name that should be used when generating URLs for your MediaWiki installation. Make sure that it is set to the correct value for your server.

  2. Check the value of the $wgUsePathInfo setting in your LocalSettings.php file. This setting controls whether MediaWiki uses "pretty" URLs or not. If it is set to true, MediaWiki will use "pretty" URLs, which may cause issues with redirection on a shared hosting service or behind a proxy. You can try setting it to false to see if this resolves the issue.

  3. Check the RewriteRule directives in your .htaccess file. If you are using Apache as your web server, the RewriteRule directives in your .htaccess file may be causing issues with internal server host names or redirection. Make sure that the RewriteRule directives are correctly configured for your server.

  4. Check the configuration of your proxy server. If you are running MediaWiki behind a proxy server, the proxy server may be causing issues with internal server host names or redirection. Make sure that the proxy server is correctly configured to pass traffic to your MediaWiki installation.

  5. Check the logs for your web server and proxy server. If you are still experiencing issues with internal server host names or redirection, you may want to check the logs for your web server and proxy server for additional clues about the problem. The logs may contain error messages or other information that can help you troubleshoot the issue.

If you are still having trouble after trying these steps, you may want to seek assistance from your hosting provider or from the MediaWiki community. There are many experienced MediaWiki users who may be able to help you troubleshoot the issue.

Created Time:2017-10-30 10:17:50  Author:lautturi