Difference between revisions of "Talk:MediaWiki/archive/customizing/URLs"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m (put header over question)
Line 14: Line 14:
  
 
If that doesn't work, or doesn't answer your question, please let me know. --[[User:Woozle|Woozle]] 21:32, 15 February 2006 (EST)
 
If that doesn't work, or doesn't answer your question, please let me know. --[[User:Woozle|Woozle]] 21:32, 15 February 2006 (EST)
 +
 +
Yeah, I already know this.  Mine is set up correctly as "$wgArticlePath  = "$wgScript/?title=$1";" because I can't set it up as "$wgScript = "$wgScriptPath/index.php";" 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's great.  I'm just not sure.  thanks!

Revision as of 18:11, 16 February 2006

question from anonymous user

Could you possibly give instructions if you use the "index.php?title=" method? because my server gets 404 errors with the /index.php/ method? i can't tell from your article which changes would be necessary.

how to use ?title=

Well, I haven't ever set that up myself, but I gather it's set in LocalSettings.php. With the normal setup (i.e. /index.php/articlename), you have these settings:

$wgScript           = "$wgScriptPath/index.php";
$wgArticlePath      = "$wgScript/$1";

...so I think what you would do is change the second setting:

$wgArticlePath      = "$wgScript/?title=$1";

I'm sure I've seen this explicitly spelled out somewhere in the MediaWiki documentation, but can't find it at the moment.

If that doesn't work, or doesn't answer your question, please let me know. --Woozle 21:32, 15 February 2006 (EST)

Yeah, I already know this. Mine is set up correctly as "$wgArticlePath = "$wgScript/?title=$1";" because I can't set it up as "$wgScript = "$wgScriptPath/index.php";" 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's great. I'm just not sure. thanks!