Enabling SEO-Friendly URLs in MediaWiki with Apache and Nginx
MediaWiki’s default URL structure — www.example.com/w/index.php?title=TITLE — works functionally but creates poor SEO signals and awkward shareable links. Clean URLs like www.example.com/w/TITLE improve search visibility, readability, and user experience while making pages easier to reference. LocalSettings.php Configuration Open LocalSettings.php in your MediaWiki root directory and add these settings: $wgScript = “/w/index.php”; $wgArticlePath = “/w/$1”; The…