<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=75.31.105.122</id>
	<title>HTYP - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=75.31.105.122"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Special:Contributions/75.31.105.122"/>
	<updated>2026-06-23T22:48:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=MediaWiki/archive/customizing/URLs&amp;diff=7452</id>
		<title>MediaWiki/archive/customizing/URLs</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=MediaWiki/archive/customizing/URLs&amp;diff=7452"/>
		<updated>2007-06-23T08:36:01Z</updated>

		<summary type="html">&lt;p&gt;75.31.105.122: /* Comments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Navigation==&lt;br /&gt;
{{web software|MediaWiki}}: [[MediaWiki customization|customization]]: [[shortening MediaWiki URLs]]{{sidebar|__TOC__}}&lt;br /&gt;
==Overview==&lt;br /&gt;
The most reliable method seems to be the mod_rewrite, which requires access to either httpd.conf or requires particular handling options for .htaccess to be switched on (fortunately, they usually seem to be). Failing that, another method is:&lt;br /&gt;
* [[using error handlers to tidy MediaWiki URLs]]&lt;br /&gt;
&lt;br /&gt;
Some additional methods are documented [http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url here].&lt;br /&gt;
==Using mod_rewrite==&lt;br /&gt;
This is probably documented elsewhere, but this is what actually worked on a shared server without root access or a shell.&lt;br /&gt;
&lt;br /&gt;
This assumes MediaWiki is installed in the root of the www pages, e.g. &amp;lt;nowiki&amp;gt;http://thedomain.com/Main_Page&amp;lt;/nowiki&amp;gt; is the wiki&#039;s main page.&lt;br /&gt;
&lt;br /&gt;
First, the .htaccess file needs to include:&lt;br /&gt;
{{quoteon}}&lt;br /&gt;
:&amp;amp;lt;IfModule [[mod_rewrite]].c&amp;amp;gt;&lt;br /&gt;
::RewriteEngine on&lt;br /&gt;
::&lt;br /&gt;
::RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
::RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
::RewriteRule ^(.*)$ index.php/$1 [L,QSA]&lt;br /&gt;
:&amp;amp;lt;/IfModule&amp;amp;gt;&lt;br /&gt;
{{quoteoff}}&lt;br /&gt;
&lt;br /&gt;
Second, modify LocalSettings.php:&lt;br /&gt;
:$wgArticlePath      = &amp;quot;/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Then do ?action=purge on any page to test it. Internal links on existing pages will convert to the new URLs any time they are saved or purged.&lt;br /&gt;
&lt;br /&gt;
The above seems to work for everything (including editing) without breaking old-style URLs, and may offer clues as to how to fix the minor problems which make the 404 method (below) unusable.&lt;br /&gt;
&lt;br /&gt;
This method is also documented here, with some minor changes: http://wiki.welldesignedurls.org/Clean_Urls_for_MediaWiki&lt;br /&gt;
&lt;br /&gt;
Wish list:&lt;br /&gt;
* proper handling of page named [[.htaccess]] (click on that for a demonstration of the problem)&lt;br /&gt;
* ability to have the wiki installed in a subdirectory while still making it appear to be in the domain&#039;s root folder&lt;br /&gt;
==Comments==&lt;br /&gt;
Please feel free to post comments here or on the Talk page if you try any of these procedures.&lt;br /&gt;
&lt;br /&gt;
-------------------------&lt;br /&gt;
6/23/2007: I used your .htaccess and then set &#039;&#039;$wgArticlePath = &amp;quot;$wgScriptPath/$1&amp;quot;;&#039;&#039;. This way the forwarding works regardless of what directory the wiki is located in. In my case it was &#039;&#039;/wiki&#039;&#039;. --Jordan Mendler [[mailto:jmendler@ucla.edu jmendler@ucla.edu]]&lt;br /&gt;
-------------------------&lt;/div&gt;</summary>
		<author><name>75.31.105.122</name></author>
	</entry>
</feed>