<?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=Merriam</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=Merriam"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/Special:Contributions/Merriam"/>
	<updated>2026-06-25T08:04:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14915</id>
		<title>Talk:MediaWiki/archive/customizing/URLs</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14915"/>
		<updated>2011-01-27T12:19:57Z</updated>

		<summary type="html">&lt;p&gt;Merriam: Undo revision 14914 by 77.74.50.121 (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== question from anonymous user ==&lt;br /&gt;
Could you possibly give instructions if you use the &amp;quot;index.php?title=&amp;quot; method?  because my server gets 404 errors with the /index.php/ method?  i can&#039;t tell from your article which changes would be necessary.&lt;br /&gt;
== how to use ?title= ==&lt;br /&gt;
&lt;br /&gt;
Well, I haven&#039;t ever set that up myself, but I gather it&#039;s set in [[LocalSettings.php]]. With the normal setup (i.e. /index.php/articlename), you have these settings:&lt;br /&gt;
 $wgScript           = &amp;quot;$wgScriptPath/index.php&amp;quot;;&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...so I think what you would do is change the second setting:&lt;br /&gt;
&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/?title=$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
I&#039;m sure I&#039;ve seen this explicitly spelled out somewhere in the MediaWiki documentation, but can&#039;t find it at the moment.&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work, or doesn&#039;t answer your question, please let me know. --[[User:Woozle|Woozle]] 21:32, 15 February 2006 (EST)&lt;br /&gt;
== anonymous user replies ==&lt;br /&gt;
Yeah, I already know this.  Mine is set up correctly as &amp;quot;$wgArticlePath  = &amp;quot;$wgScript/?title=$1&amp;quot;;&amp;quot; because I can&#039;t set it up as &amp;quot;$wgScript = &amp;quot;$wgScriptPath/index.php&amp;quot;;&amp;quot; because it causes 404 errors.  Something to do with my host.  Anyways, what I was asking is what do I need to change in your instructions because mine will not replace /wiki/index.php/articlename and replace with /wiki/articlename but rather will replace /wiki/index.php?title=articlename and replace with /wiki/articlename.  See what I am asking here?  If the instructions are not any different, that&#039;s great.  I&#039;m just not sure.  thanks!&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
Oh, ok, I think I see what you mean.&lt;br /&gt;
&lt;br /&gt;
At a guess, I &#039;&#039;think&#039;&#039; the same instructions would apply -- though really I should have to have a clearer understanding of why the &amp;quot;index.php/Title&amp;quot; method doesn&#039;t work for you in order to make an informed guess. (Do you have index.php set up as a default file in your .htaccess?) &lt;br /&gt;
&lt;br /&gt;
Note that I&#039;ve revised the &amp;quot;404 Method&amp;quot; instructions a bit -- I did some tests and solved some of the problems I was having earlier, although editing still does not work right.&lt;br /&gt;
&lt;br /&gt;
In any case, if it doesn&#039;t work for you, let me know what happens... --[[User:Woozle|Woozle]] 15:45, 16 February 2006 (EST)&lt;br /&gt;
&lt;br /&gt;
== Ash has same question ==&lt;br /&gt;
&lt;br /&gt;
Okay, I also am required to have urls that use &amp;quot;index.php?title=$1&amp;quot;. So, when I do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    &amp;lt;IfModule mod_rewrite.c&amp;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 [L,QSA] &lt;br /&gt;
    &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with LocalSettings.php article path: $wgArticlePath = &amp;quot;/mydirectory/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...I get a 500 internal server error. Of course, I don&#039;t know if the problem is with the code or the server. Any ideas?&lt;br /&gt;
&lt;br /&gt;
Thank you! ---Ash&lt;br /&gt;
&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
&lt;br /&gt;
Hmm.&lt;br /&gt;
&lt;br /&gt;
# Do you have access to your server&#039;s error logs? Some of the better hosts let you get at these through the control panel, even if you don&#039;t have permission to get to the file itself. They can be maddeningly uninformative sometimes, and other times will show you exactly what the problem is with a sort of &amp;quot;you didn&#039;t &#039;&#039;ask&#039;&#039;&amp;quot; kind of smirk...&lt;br /&gt;
# Perhaps:&lt;br /&gt;
#* RewriteRule ^(.*)$ &amp;lt;u&amp;gt;mydirectory/&amp;lt;/u&amp;gt;index.php?title=$1 [L,QSA]&lt;br /&gt;
#: As I understand it, &amp;lt;u&amp;gt;^(.*)$&amp;lt;/u&amp;gt; is a [[regex]] meaning &amp;quot;take everything in the original URL&#039;s path and stick it in $1&amp;quot;, and the rest of the line means &amp;quot;and replace it with the following&amp;quot;. So &amp;lt;nowiki&amp;gt;&amp;quot;http://yourdomain/yourwiki/SomePage&amp;quot; would translate to &amp;quot;http://yourdomain/yourwiki/index.php?title=SomePage&amp;quot;&amp;lt;/nowiki&amp;gt;, though you may need to tinker with it a bit (extra slashes and such). If you can&#039;t get it to work, I know someone who is good at reading regexes and may be able to spot where I&#039;ve got it wrong ;-) (An example ugly-style URL that &#039;&#039;does&#039;&#039; work would be helpful, in this case.)&lt;br /&gt;
--[[User:Woozle|Woozle]] 18:14, 18 August 2006 (EDT)&lt;br /&gt;
-----&lt;br /&gt;
:Alas, I do not have access to the error_log. Unfortunately, every combo of directory and no directory leads to the 500 error. It must be how the server is set up. Hopefully they can help me out...thanks for thinking about it. ---Ash&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;EDIT&#039;&#039;&#039;: Okay, I actually got it to work! The code I used was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   SecFilterInheritance Off&lt;br /&gt;
   RewriteEngine on&lt;br /&gt;
   RewriteRule ^(.*)$ index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:However, I have a new problem...it isn&#039;t finding the stylesheet. I&#039;ve tried putting in a hard link, and all kinds of additional calls to the htaccess, but they all go back to a 500 error. I guess I&#039;ll just keep banging away at it...  Thanks again. ---Ash&lt;br /&gt;
----&lt;br /&gt;
A hint on that: make sure .css files are being sent with mime type &#039;&#039;&#039;text/css&#039;&#039;&#039;. If not, add this to .htaccess:&lt;br /&gt;
 AddType text/css .css&lt;br /&gt;
&lt;br /&gt;
You can use {{manpagelink|wget}} to find out what the headers are. If you&#039;re not using Linux, you can use Firefox&#039;s  Page Info tool to get some of the same information. --[[User:Woozle|Woozle]] 10:00, 19 August 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Merriam</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14913</id>
		<title>Talk:MediaWiki/archive/customizing/URLs</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14913"/>
		<updated>2011-01-26T16:33:39Z</updated>

		<summary type="html">&lt;p&gt;Merriam: Undo revision 14912 by 77.74.50.121 (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== question from anonymous user ==&lt;br /&gt;
Could you possibly give instructions if you use the &amp;quot;index.php?title=&amp;quot; method?  because my server gets 404 errors with the /index.php/ method?  i can&#039;t tell from your article which changes would be necessary.&lt;br /&gt;
== how to use ?title= ==&lt;br /&gt;
&lt;br /&gt;
Well, I haven&#039;t ever set that up myself, but I gather it&#039;s set in [[LocalSettings.php]]. With the normal setup (i.e. /index.php/articlename), you have these settings:&lt;br /&gt;
 $wgScript           = &amp;quot;$wgScriptPath/index.php&amp;quot;;&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...so I think what you would do is change the second setting:&lt;br /&gt;
&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/?title=$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
I&#039;m sure I&#039;ve seen this explicitly spelled out somewhere in the MediaWiki documentation, but can&#039;t find it at the moment.&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work, or doesn&#039;t answer your question, please let me know. --[[User:Woozle|Woozle]] 21:32, 15 February 2006 (EST)&lt;br /&gt;
== anonymous user replies ==&lt;br /&gt;
Yeah, I already know this.  Mine is set up correctly as &amp;quot;$wgArticlePath  = &amp;quot;$wgScript/?title=$1&amp;quot;;&amp;quot; because I can&#039;t set it up as &amp;quot;$wgScript = &amp;quot;$wgScriptPath/index.php&amp;quot;;&amp;quot; because it causes 404 errors.  Something to do with my host.  Anyways, what I was asking is what do I need to change in your instructions because mine will not replace /wiki/index.php/articlename and replace with /wiki/articlename but rather will replace /wiki/index.php?title=articlename and replace with /wiki/articlename.  See what I am asking here?  If the instructions are not any different, that&#039;s great.  I&#039;m just not sure.  thanks!&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
Oh, ok, I think I see what you mean.&lt;br /&gt;
&lt;br /&gt;
At a guess, I &#039;&#039;think&#039;&#039; the same instructions would apply -- though really I should have to have a clearer understanding of why the &amp;quot;index.php/Title&amp;quot; method doesn&#039;t work for you in order to make an informed guess. (Do you have index.php set up as a default file in your .htaccess?) &lt;br /&gt;
&lt;br /&gt;
Note that I&#039;ve revised the &amp;quot;404 Method&amp;quot; instructions a bit -- I did some tests and solved some of the problems I was having earlier, although editing still does not work right.&lt;br /&gt;
&lt;br /&gt;
In any case, if it doesn&#039;t work for you, let me know what happens... --[[User:Woozle|Woozle]] 15:45, 16 February 2006 (EST)&lt;br /&gt;
&lt;br /&gt;
== Ash has same question ==&lt;br /&gt;
&lt;br /&gt;
Okay, I also am required to have urls that use &amp;quot;index.php?title=$1&amp;quot;. So, when I do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    &amp;lt;IfModule mod_rewrite.c&amp;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 [L,QSA] &lt;br /&gt;
    &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with LocalSettings.php article path: $wgArticlePath = &amp;quot;/mydirectory/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...I get a 500 internal server error. Of course, I don&#039;t know if the problem is with the code or the server. Any ideas?&lt;br /&gt;
&lt;br /&gt;
Thank you! ---Ash&lt;br /&gt;
&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
&lt;br /&gt;
Hmm.&lt;br /&gt;
&lt;br /&gt;
# Do you have access to your server&#039;s error logs? Some of the better hosts let you get at these through the control panel, even if you don&#039;t have permission to get to the file itself. They can be maddeningly uninformative sometimes, and other times will show you exactly what the problem is with a sort of &amp;quot;you didn&#039;t &#039;&#039;ask&#039;&#039;&amp;quot; kind of smirk...&lt;br /&gt;
# Perhaps:&lt;br /&gt;
#* RewriteRule ^(.*)$ &amp;lt;u&amp;gt;mydirectory/&amp;lt;/u&amp;gt;index.php?title=$1 [L,QSA]&lt;br /&gt;
#: As I understand it, &amp;lt;u&amp;gt;^(.*)$&amp;lt;/u&amp;gt; is a [[regex]] meaning &amp;quot;take everything in the original URL&#039;s path and stick it in $1&amp;quot;, and the rest of the line means &amp;quot;and replace it with the following&amp;quot;. So &amp;lt;nowiki&amp;gt;&amp;quot;http://yourdomain/yourwiki/SomePage&amp;quot; would translate to &amp;quot;http://yourdomain/yourwiki/index.php?title=SomePage&amp;quot;&amp;lt;/nowiki&amp;gt;, though you may need to tinker with it a bit (extra slashes and such). If you can&#039;t get it to work, I know someone who is good at reading regexes and may be able to spot where I&#039;ve got it wrong ;-) (An example ugly-style URL that &#039;&#039;does&#039;&#039; work would be helpful, in this case.)&lt;br /&gt;
--[[User:Woozle|Woozle]] 18:14, 18 August 2006 (EDT)&lt;br /&gt;
-----&lt;br /&gt;
:Alas, I do not have access to the error_log. Unfortunately, every combo of directory and no directory leads to the 500 error. It must be how the server is set up. Hopefully they can help me out...thanks for thinking about it. ---Ash&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;EDIT&#039;&#039;&#039;: Okay, I actually got it to work! The code I used was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   SecFilterInheritance Off&lt;br /&gt;
   RewriteEngine on&lt;br /&gt;
   RewriteRule ^(.*)$ index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:However, I have a new problem...it isn&#039;t finding the stylesheet. I&#039;ve tried putting in a hard link, and all kinds of additional calls to the htaccess, but they all go back to a 500 error. I guess I&#039;ll just keep banging away at it...  Thanks again. ---Ash&lt;br /&gt;
----&lt;br /&gt;
A hint on that: make sure .css files are being sent with mime type &#039;&#039;&#039;text/css&#039;&#039;&#039;. If not, add this to .htaccess:&lt;br /&gt;
 AddType text/css .css&lt;br /&gt;
&lt;br /&gt;
You can use {{manpagelink|wget}} to find out what the headers are. If you&#039;re not using Linux, you can use Firefox&#039;s  Page Info tool to get some of the same information. --[[User:Woozle|Woozle]] 10:00, 19 August 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Merriam</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14911</id>
		<title>Talk:MediaWiki/archive/customizing/URLs</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14911"/>
		<updated>2011-01-26T14:35:24Z</updated>

		<summary type="html">&lt;p&gt;Merriam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== question from anonymous user ==&lt;br /&gt;
Could you possibly give instructions if you use the &amp;quot;index.php?title=&amp;quot; method?  because my server gets 404 errors with the /index.php/ method?  i can&#039;t tell from your article which changes would be necessary.&lt;br /&gt;
== how to use ?title= ==&lt;br /&gt;
&lt;br /&gt;
Well, I haven&#039;t ever set that up myself, but I gather it&#039;s set in [[LocalSettings.php]]. With the normal setup (i.e. /index.php/articlename), you have these settings:&lt;br /&gt;
 $wgScript           = &amp;quot;$wgScriptPath/index.php&amp;quot;;&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...so I think what you would do is change the second setting:&lt;br /&gt;
&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/?title=$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
I&#039;m sure I&#039;ve seen this explicitly spelled out somewhere in the MediaWiki documentation, but can&#039;t find it at the moment.&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work, or doesn&#039;t answer your question, please let me know. --[[User:Woozle|Woozle]] 21:32, 15 February 2006 (EST)&lt;br /&gt;
== anonymous user replies ==&lt;br /&gt;
Yeah, I already know this.  Mine is set up correctly as &amp;quot;$wgArticlePath  = &amp;quot;$wgScript/?title=$1&amp;quot;;&amp;quot; because I can&#039;t set it up as &amp;quot;$wgScript = &amp;quot;$wgScriptPath/index.php&amp;quot;;&amp;quot; because it causes 404 errors.  Something to do with my host.  Anyways, what I was asking is what do I need to change in your instructions because mine will not replace /wiki/index.php/articlename and replace with /wiki/articlename but rather will replace /wiki/index.php?title=articlename and replace with /wiki/articlename.  See what I am asking here?  If the instructions are not any different, that&#039;s great.  I&#039;m just not sure.  thanks!&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
Oh, ok, I think I see what you mean.&lt;br /&gt;
&lt;br /&gt;
At a guess, I &#039;&#039;think&#039;&#039; the same instructions would apply -- though really I should have to have a clearer understanding of why the &amp;quot;index.php/Title&amp;quot; method doesn&#039;t work for you in order to make an informed guess. (Do you have index.php set up as a default file in your .htaccess?) &lt;br /&gt;
&lt;br /&gt;
Note that I&#039;ve revised the &amp;quot;404 Method&amp;quot; instructions a bit -- I did some tests and solved some of the problems I was having earlier, although editing still does not work right.&lt;br /&gt;
&lt;br /&gt;
In any case, if it doesn&#039;t work for you, let me know what happens... --[[User:Woozle|Woozle]] 15:45, 16 February 2006 (EST)&lt;br /&gt;
&lt;br /&gt;
== Ash has same question ==&lt;br /&gt;
&lt;br /&gt;
Okay, I also am required to have urls that use &amp;quot;index.php?title=$1&amp;quot;. So, when I do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    &amp;lt;IfModule mod_rewrite.c&amp;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 [L,QSA] &lt;br /&gt;
    &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with LocalSettings.php article path: $wgArticlePath = &amp;quot;/mydirectory/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...I get a 500 internal server error. Of course, I don&#039;t know if the problem is with the code or the server. Any ideas?&lt;br /&gt;
&lt;br /&gt;
Thank you! ---Ash&lt;br /&gt;
&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
&lt;br /&gt;
Hmm.&lt;br /&gt;
&lt;br /&gt;
# Do you have access to your server&#039;s error logs? Some of the better hosts let you get at these through the control panel, even if you don&#039;t have permission to get to the file itself. They can be maddeningly uninformative sometimes, and other times will show you exactly what the problem is with a sort of &amp;quot;you didn&#039;t &#039;&#039;ask&#039;&#039;&amp;quot; kind of smirk...&lt;br /&gt;
# Perhaps:&lt;br /&gt;
#* RewriteRule ^(.*)$ &amp;lt;u&amp;gt;mydirectory/&amp;lt;/u&amp;gt;index.php?title=$1 [L,QSA]&lt;br /&gt;
#: As I understand it, &amp;lt;u&amp;gt;^(.*)$&amp;lt;/u&amp;gt; is a [[regex]] meaning &amp;quot;take everything in the original URL&#039;s path and stick it in $1&amp;quot;, and the rest of the line means &amp;quot;and replace it with the following&amp;quot;. So &amp;lt;nowiki&amp;gt;&amp;quot;http://yourdomain/yourwiki/SomePage&amp;quot; would translate to &amp;quot;http://yourdomain/yourwiki/index.php?title=SomePage&amp;quot;&amp;lt;/nowiki&amp;gt;, though you may need to tinker with it a bit (extra slashes and such). If you can&#039;t get it to work, I know someone who is good at reading regexes and may be able to spot where I&#039;ve got it wrong ;-) (An example ugly-style URL that &#039;&#039;does&#039;&#039; work would be helpful, in this case.)&lt;br /&gt;
--[[User:Woozle|Woozle]] 18:14, 18 August 2006 (EDT)&lt;br /&gt;
-----&lt;br /&gt;
:Alas, I do not have access to the error_log. Unfortunately, every combo of directory and no directory leads to the 500 error. It must be how the server is set up. Hopefully they can help me out...thanks for thinking about it. ---Ash&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;EDIT&#039;&#039;&#039;: Okay, I actually got it to work! The code I used was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   SecFilterInheritance Off&lt;br /&gt;
   RewriteEngine on&lt;br /&gt;
   RewriteRule ^(.*)$ index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:However, I have a new problem...it isn&#039;t finding the stylesheet. I&#039;ve tried putting in a hard link, and all kinds of additional calls to the htaccess, but they all go back to a 500 error. I guess I&#039;ll just keep banging away at it...  Thanks again. ---Ash&lt;br /&gt;
----&lt;br /&gt;
A hint on that: make sure .css files are being sent with mime type &#039;&#039;&#039;text/css&#039;&#039;&#039;. If not, add this to .htaccess:&lt;br /&gt;
 AddType text/css .css&lt;br /&gt;
&lt;br /&gt;
You can use {{manpagelink|wget}} to find out what the headers are. If you&#039;re not using Linux, you can use Firefox&#039;s  Page Info tool to get some of the same information. --[[User:Woozle|Woozle]] 10:00, 19 August 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Merriam</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14748</id>
		<title>Talk:MediaWiki/archive/customizing/URLs</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14748"/>
		<updated>2011-01-01T17:31:32Z</updated>

		<summary type="html">&lt;p&gt;Merriam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== question from anonymous user ==&lt;br /&gt;
Could you possibly give instructions if you use the &amp;quot;index.php?title=&amp;quot; method?  because my server gets 404 errors with the /index.php/ method?  i can&#039;t tell from your article which changes would be necessary.&lt;br /&gt;
== how to use ?title= ==&lt;br /&gt;
&lt;br /&gt;
Well, I haven&#039;t ever set that up myself, but I gather it&#039;s set in [[LocalSettings.php]]. With the normal setup (i.e. /index.php/articlename), you have these settings:&lt;br /&gt;
 $wgScript           = &amp;quot;$wgScriptPath/index.php&amp;quot;;&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...so I think what you would do is change the second setting:&lt;br /&gt;
&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/?title=$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
I&#039;m sure I&#039;ve seen this explicitly spelled out somewhere in the MediaWiki documentation, but can&#039;t find it at the moment.&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work, or doesn&#039;t answer your question, please let me know. --[[User:Woozle|Woozle]] 21:32, 15 February 2006 (EST)&lt;br /&gt;
== anonymous user replies ==&lt;br /&gt;
Yeah, I already know this.  Mine is set up correctly as &amp;quot;$wgArticlePath  = &amp;quot;$wgScript/?title=$1&amp;quot;;&amp;quot; because I can&#039;t set it up as &amp;quot;$wgScript = &amp;quot;$wgScriptPath/index.php&amp;quot;;&amp;quot; because it causes 404 errors.  Something to do with my host.  Anyways, what I was asking is what do I need to change in your instructions because mine will not replace /wiki/index.php/articlename and replace with /wiki/articlename but rather will replace /wiki/index.php?title=articlename and replace with /wiki/articlename.  See what I am asking here?  If the instructions are not any different, that&#039;s great.  I&#039;m just not sure.  thanks!&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
Oh, ok, I think I see what you mean.&lt;br /&gt;
&lt;br /&gt;
At a guess, I &#039;&#039;think&#039;&#039; the same instructions would apply -- though really I should have to have a clearer understanding of why the &amp;quot;index.php/Title&amp;quot; method doesn&#039;t work for you in order to make an informed guess. (Do you have index.php set up as a default file in your .htaccess?) &lt;br /&gt;
&lt;br /&gt;
Note that I&#039;ve revised the &amp;quot;404 Method&amp;quot; instructions a bit -- I did some tests and solved some of the problems I was having earlier, although editing still does not work right.&lt;br /&gt;
&lt;br /&gt;
In any case, if it doesn&#039;t work for you, let me know what happens... --[[User:Woozle|Woozle]] 15:45, 16 February 2006 (EST)&lt;br /&gt;
&lt;br /&gt;
== Ash has same question ==&lt;br /&gt;
&lt;br /&gt;
Okay, I also am required to have urls that use &amp;quot;index.php?title=$1&amp;quot;. So, when I do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    &amp;lt;IfModule mod_rewrite.c&amp;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 [L,QSA] &lt;br /&gt;
    &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with LocalSettings.php article path: $wgArticlePath = &amp;quot;/mydirectory/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...I get a 500 internal server error. Of course, I don&#039;t know if the problem is with the code or the server. Any ideas?&lt;br /&gt;
&lt;br /&gt;
Thank you! ---Ash&lt;br /&gt;
&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
&lt;br /&gt;
Hmm.&lt;br /&gt;
&lt;br /&gt;
# Do you have access to your server&#039;s error logs? Some of the better hosts let you get at these through the control panel, even if you don&#039;t have permission to get to the file itself. They can be maddeningly uninformative sometimes, and other times will show you exactly what the problem is with a sort of &amp;quot;you didn&#039;t &#039;&#039;ask&#039;&#039;&amp;quot; kind of smirk...&lt;br /&gt;
# Perhaps:&lt;br /&gt;
#* RewriteRule ^(.*)$ &amp;lt;u&amp;gt;mydirectory/&amp;lt;/u&amp;gt;index.php?title=$1 [L,QSA]&lt;br /&gt;
#: As I understand it, &amp;lt;u&amp;gt;^(.*)$&amp;lt;/u&amp;gt; is a [[regex]] meaning &amp;quot;take everything in the original URL&#039;s path and stick it in $1&amp;quot;, and the rest of the line means &amp;quot;and replace it with the following&amp;quot;. So &amp;lt;nowiki&amp;gt;&amp;quot;http://yourdomain/yourwiki/SomePage&amp;quot; would translate to &amp;quot;http://yourdomain/yourwiki/index.php?title=SomePage&amp;quot;&amp;lt;/nowiki&amp;gt;, though you may need to tinker with it a bit (extra slashes and such). If you can&#039;t get it to work, I know someone who is good at reading regexes and may be able to spot where I&#039;ve got it wrong ;-) (An example ugly-style URL that &#039;&#039;does&#039;&#039; work would be helpful, in this case.)&lt;br /&gt;
--[[User:Woozle|Woozle]] 18:14, 18 August 2006 (EDT)&lt;br /&gt;
-----&lt;br /&gt;
:Alas, I do not have access to the error_log. Unfortunately, every combo of directory and no directory leads to the 500 error. It must be how the server is set up. Hopefully they can help me out...thanks for thinking about it. ---Ash&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;EDIT&#039;&#039;&#039;: Okay, I actually got it to work! The code I used was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   SecFilterInheritance Off&lt;br /&gt;
   RewriteEngine on&lt;br /&gt;
   RewriteRule ^(.*)$ index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:However, I have a new problem...it isn&#039;t finding the stylesheet. I&#039;ve tried putting in a hard link, and all kinds of additional calls to the htaccess, but they all go back to a 500 error. I guess I&#039;ll just keep banging away at it...  Thanks again. ---Ash&lt;br /&gt;
----&lt;br /&gt;
A hint on that: make sure .css files are being sent with mime type &#039;&#039;&#039;text/css&#039;&#039;&#039;. If not, add this to .htaccess:&lt;br /&gt;
 AddType text/css .css&lt;br /&gt;
&lt;br /&gt;
You can use {{manpagelink|wget}} to find out what the headers are. If you&#039;re not using Linux, you can use Firefox&#039;s  Page Info tool to get some of the same information. --[[User:Woozle|Woozle]] 10:00, 19 August 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Merriam</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14745</id>
		<title>Talk:MediaWiki/archive/customizing/URLs</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=Talk:MediaWiki/archive/customizing/URLs&amp;diff=14745"/>
		<updated>2011-01-01T14:47:02Z</updated>

		<summary type="html">&lt;p&gt;Merriam: Undo revision 14740 by 77.74.50.121 (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== question from anonymous user ==&lt;br /&gt;
Could you possibly give instructions if you use the &amp;quot;index.php?title=&amp;quot; method?  because my server gets 404 errors with the /index.php/ method?  i can&#039;t tell from your article which changes would be necessary.&lt;br /&gt;
== how to use ?title= ==&lt;br /&gt;
&lt;br /&gt;
Well, I haven&#039;t ever set that up myself, but I gather it&#039;s set in [[LocalSettings.php]]. With the normal setup (i.e. /index.php/articlename), you have these settings:&lt;br /&gt;
 $wgScript           = &amp;quot;$wgScriptPath/index.php&amp;quot;;&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...so I think what you would do is change the second setting:&lt;br /&gt;
&lt;br /&gt;
 $wgArticlePath      = &amp;quot;$wgScript/?title=$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
I&#039;m sure I&#039;ve seen this explicitly spelled out somewhere in the MediaWiki documentation, but can&#039;t find it at the moment.&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work, or doesn&#039;t answer your question, please let me know. --[[User:Woozle|Woozle]] 21:32, 15 February 2006 (EST)&lt;br /&gt;
== anonymous user replies ==&lt;br /&gt;
Yeah, I already know this.  Mine is set up correctly as &amp;quot;$wgArticlePath  = &amp;quot;$wgScript/?title=$1&amp;quot;;&amp;quot; because I can&#039;t set it up as &amp;quot;$wgScript = &amp;quot;$wgScriptPath/index.php&amp;quot;;&amp;quot; because it causes 404 errors.  Something to do with my host.  Anyways, what I was asking is what do I need to change in your instructions because mine will not replace /wiki/index.php/articlename and replace with /wiki/articlename but rather will replace /wiki/index.php?title=articlename and replace with /wiki/articlename.  See what I am asking here?  If the instructions are not any different, that&#039;s great.  I&#039;m just not sure.  thanks!&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
Oh, ok, I think I see what you mean.&lt;br /&gt;
&lt;br /&gt;
At a guess, I &#039;&#039;think&#039;&#039; the same instructions would apply -- though really I should have to have a clearer understanding of why the &amp;quot;index.php/Title&amp;quot; method doesn&#039;t work for you in order to make an informed guess. (Do you have index.php set up as a default file in your .htaccess?) &lt;br /&gt;
&lt;br /&gt;
Note that I&#039;ve revised the &amp;quot;404 Method&amp;quot; instructions a bit -- I did some tests and solved some of the problems I was having earlier, although editing still does not work right.&lt;br /&gt;
&lt;br /&gt;
In any case, if it doesn&#039;t work for you, let me know what happens... --[[User:Woozle|Woozle]] 15:45, 16 February 2006 (EST)&lt;br /&gt;
&lt;br /&gt;
== Ash has same question ==&lt;br /&gt;
&lt;br /&gt;
Okay, I also am required to have urls that use &amp;quot;index.php?title=$1&amp;quot;. So, when I do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    &amp;lt;IfModule mod_rewrite.c&amp;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 [L,QSA] &lt;br /&gt;
    &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with LocalSettings.php article path: $wgArticlePath = &amp;quot;/mydirectory/$1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
...I get a 500 internal server error. Of course, I don&#039;t know if the problem is with the code or the server. Any ideas?&lt;br /&gt;
&lt;br /&gt;
Thank you! ---Ash&lt;br /&gt;
&lt;br /&gt;
== Woozle responds ==&lt;br /&gt;
&lt;br /&gt;
Hmm.&lt;br /&gt;
&lt;br /&gt;
# Do you have access to your server&#039;s error logs? Some of the better hosts let you get at these through the control panel, even if you don&#039;t have permission to get to the file itself. They can be maddeningly uninformative sometimes, and other times will show you exactly what the problem is with a sort of &amp;quot;you didn&#039;t &#039;&#039;ask&#039;&#039;&amp;quot; kind of smirk...&lt;br /&gt;
# Perhaps:&lt;br /&gt;
#* RewriteRule ^(.*)$ &amp;lt;u&amp;gt;mydirectory/&amp;lt;/u&amp;gt;index.php?title=$1 [L,QSA]&lt;br /&gt;
#: As I understand it, &amp;lt;u&amp;gt;^(.*)$&amp;lt;/u&amp;gt; is a [[regex]] meaning &amp;quot;take everything in the original URL&#039;s path and stick it in $1&amp;quot;, and the rest of the line means &amp;quot;and replace it with the following&amp;quot;. So &amp;lt;nowiki&amp;gt;&amp;quot;http://yourdomain/yourwiki/SomePage&amp;quot; would translate to &amp;quot;http://yourdomain/yourwiki/index.php?title=SomePage&amp;quot;&amp;lt;/nowiki&amp;gt;, though you may need to tinker with it a bit (extra slashes and such). If you can&#039;t get it to work, I know someone who is good at reading regexes and may be able to spot where I&#039;ve got it wrong ;-) (An example ugly-style URL that &#039;&#039;does&#039;&#039; work would be helpful, in this case.)&lt;br /&gt;
--[[User:Woozle|Woozle]] 18:14, 18 August 2006 (EDT)&lt;br /&gt;
-----&lt;br /&gt;
:Alas, I do not have access to the error_log. Unfortunately, every combo of directory and no directory leads to the 500 error. It must be how the server is set up. Hopefully they can help me out...thanks for thinking about it. ---Ash&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;EDIT&#039;&#039;&#039;: Okay, I actually got it to work! The code I used was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
   SecFilterInheritance Off&lt;br /&gt;
   RewriteEngine on&lt;br /&gt;
   RewriteRule ^(.*)$ index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:However, I have a new problem...it isn&#039;t finding the stylesheet. I&#039;ve tried putting in a hard link, and all kinds of additional calls to the htaccess, but they all go back to a 500 error. I guess I&#039;ll just keep banging away at it...  Thanks again. ---Ash&lt;br /&gt;
----&lt;br /&gt;
A hint on that: make sure .css files are being sent with mime type &#039;&#039;&#039;text/css&#039;&#039;&#039;. If not, add this to .htaccess:&lt;br /&gt;
 AddType text/css .css&lt;br /&gt;
&lt;br /&gt;
You can use {{manpagelink|wget}} to find out what the headers are. If you&#039;re not using Linux, you can use Firefox&#039;s  Page Info tool to get some of the same information. --[[User:Woozle|Woozle]] 10:00, 19 August 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Merriam</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=HTYP:Advertising&amp;diff=13225</id>
		<title>HTYP:Advertising</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=HTYP:Advertising&amp;diff=13225"/>
		<updated>2010-01-13T00:13:28Z</updated>

		<summary type="html">&lt;p&gt;Merriam: license update  --  GNU FDL --&amp;gt; by-nc-sa via HTYP:Copyrights&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:HTYP policy]]This is [[HTYP]]&#039;s [[:category:HTYP policy|policy]] regarding advertising and sponsored content.&lt;br /&gt;
&lt;br /&gt;
==No advertising==&lt;br /&gt;
...Or should that be &amp;quot;&#039;&#039;free&#039;&#039; advertising&amp;quot;?&lt;br /&gt;
* We do permit (and encourage) content about [[:category:businesses|businesses]], [[:category:organizations|organizations]], but all submitted content &#039;&#039;will be reviewed&#039;&#039; for relevance and accuracy, with the aim of avoiding the sort of hyperbolic and exclamatory language typically found in advertising (except within attributed quotes). (This is not, however, a promise or guarantee of accuracy; please see [[HTYP:General disclaimer]].)&lt;br /&gt;
** Other categories of advertisers may also be welcome on HTYP:&lt;br /&gt;
*** &#039;&#039;&#039;causes&#039;&#039;&#039; might fit better within [[Issuepedia]], though pages relating to practical details (contact info, meetings, events, etc.) are certainly appropriate for HTYP&lt;br /&gt;
*** &#039;&#039;&#039;political campaigns&#039;&#039;&#039;: See &amp;quot;causes&amp;quot;, above&lt;br /&gt;
*** &#039;&#039;anything else?&#039;&#039;&lt;br /&gt;
* We also allow and encourage individuals who interact with those commercial endeavors to report in detail on their experiences, and to feel free to say what they think (see [[HTYP:Purpose Guide]]). Whatever you want to call the result, it is definitely &amp;quot;free&amp;quot;, as all content is freely hosted and freely available (and may even be [[HTYP:Copyrights|freely copied and redistributed]]), and helps to support free speech.&lt;br /&gt;
* Claims and opinions must be clearly marked as such. Much &amp;quot;advertising&amp;quot; contains useful, factual information, and HTYP encourages the posting of useful, descriptive content of any kind; the &#039;&#039;useful&#039;&#039; parts of advertising are, therefore, encouraged.&lt;br /&gt;
==No sponsored content==&lt;br /&gt;
We will not be including sponsored content, including sponsored links, within htyp.org. If content belongs in a certain place, then it should go there free of charge; if it doesn&#039;t belong there, then it shouldn&#039;t be there.&lt;br /&gt;
&lt;br /&gt;
We may later decide to develop an advertising-supported site using HTYP&#039;s contents, but HTYP (dot org) will always be available in its present form. (Hopefully no commercial site will be necessary.)&lt;/div&gt;</summary>
		<author><name>Merriam</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=HTYP:Copyrights&amp;diff=13224</id>
		<title>HTYP:Copyrights</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=HTYP:Copyrights&amp;diff=13224"/>
		<updated>2010-01-13T00:06:43Z</updated>

		<summary type="html">&lt;p&gt;Merriam: license update  --  GNU FDL --&amp;gt; by-nc-sa&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Unless specifically stated within the text or image, anything on this site may be freely copied and used elsewhere, as permitted under the [http://creativecommons.org/licenses/by-nc-sa/3.0/us/ site license (by-nc-sa)].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note to authors&#039;&#039;&#039;: if you need to post non-copyable material, please mention the copyright status at the &#039;&#039;top&#039;&#039; of the page, or (for files/images) as the first item in the description text. Please do not post material which &#039;&#039;you&#039;&#039; do not have permission to repost (although short excerpts may be allowable under [[fair use]]).&lt;/div&gt;</summary>
		<author><name>Merriam</name></author>
	</entry>
</feed>