<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=User%3AEndenizen%2FURL_Rewriting</id>
	<title>User:Endenizen/URL Rewriting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.extremist.software/index.php?action=history&amp;feed=atom&amp;title=User%3AEndenizen%2FURL_Rewriting"/>
	<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=User:Endenizen/URL_Rewriting&amp;action=history"/>
	<updated>2026-04-09T07:43:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.extremist.software/index.php?title=User:Endenizen/URL_Rewriting&amp;diff=1478&amp;oldid=prev</id>
		<title>Endenizen: New page: === URL Stuff for noisebridge wiki ===  &#039;&#039;&#039;LocalSettings.php in /wiki&#039;&#039;&#039;  &lt;code&gt;$wgScriptPath&lt;/code&gt; should already be defined. Wiki should be installed/moved to the /wiki dir. (first two ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.extremist.software/index.php?title=User:Endenizen/URL_Rewriting&amp;diff=1478&amp;oldid=prev"/>
		<updated>2008-10-08T00:28:47Z</updated>

		<summary type="html">&lt;p&gt;New page: === URL Stuff for noisebridge wiki ===  &amp;#039;&amp;#039;&amp;#039;LocalSettings.php in /wiki&amp;#039;&amp;#039;&amp;#039;  &amp;lt;code&amp;gt;$wgScriptPath&amp;lt;/code&amp;gt; should already be defined. Wiki should be installed/moved to the /wiki dir. (first two ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== URL Stuff for noisebridge wiki ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;LocalSettings.php in /wiki&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$wgScriptPath&amp;lt;/code&amp;gt; should already be defined. Wiki should be installed/moved to the /wiki dir. (first two lines may be optional)&lt;br /&gt;
&lt;br /&gt;
 $wgScript        = &amp;quot;$wgScriptPath/index.php&amp;quot;;&lt;br /&gt;
 $wgRedirectPath  = &amp;quot;$wgScriptPath/redirect.php&amp;quot;;&lt;br /&gt;
 $wgArticlePath   = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;.htaccess in /wiki&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Verifies that we&amp;#039;re not trying to access an actual file, then passes us off to the wiki script.&lt;br /&gt;
&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
 RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
 RewriteRule (.*)$ index.php?title=$1&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;.htaccess in /&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Redirects us to the /wiki article if there is a &amp;#039;/&amp;#039; on the end of index.php or to an edit page if it finds a query string (ie: if we saved a link to an edit page with the old scheme, it should work just fine with the new scheme).&lt;br /&gt;
&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteRule ^index.php/(.+)$ /wiki/$1 [R]&lt;br /&gt;
 RewriteCond %{QUERY_STRING} !=&amp;quot;&amp;quot;&lt;br /&gt;
 RewriteRule ^index.php$ /wiki/index.php [R,QSA]&lt;/div&gt;</summary>
		<author><name>Endenizen</name></author>
	</entry>
</feed>