|
|
(69 intermediate revisions by 35 users not shown) |
Line 1: |
Line 1: |
− | [http://pasbasor.blogdiario.com/ ultram online] [http://eltc4tric.jubiiblog.de/ cheap xanax] [http://www.csun.edu/learningnet/discussion/file.php?0,file=142 free tracfone ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1121 qwest ringtones] [http://ellapas.jubiiblog.de/ lipitor online] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=312&FORUM_ID=3&CAT_ID=3 cheap ultram] [http://www.csun.edu/learningnet/discussion/file.php?0,file=136 buy nexium] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$118 sony ericsson ringtones] [http://discussions.csbsju.edu/general/messages/25/xyli-236.html ativan online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832257) xenical online] [http://www.rso.cmich.edu/prevet/messageboard/000031b1.htm generic cialis] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$91 cheap carisoprodol] [http://www.forumhosting.org/forum.php?mforum=laerzel free sagem ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031b4.htm generic meridia] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1120 free nextel ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832194) but tramadol] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=317 carisoprodol online] [http://bondich.blogspot.com mixing valium and xanax] [http://eltaric.blogdiario.com/ cheap norco] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/xikuzo.htm valium online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=322 cyclobenzaprine online] [http://pasbasbas.jubiiblog.de/ clonazepam online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832216) kyocera ringtones] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=317&FORUM_ID=3&CAT_ID=3 adipex online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1131 sonyericsson ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031ac.htm generic carisoprodol] [http://www.csun.edu/learningnet/discussion/file.php?0,file=130 hydrocodone online] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/ronut.htm free sony ericsson ringtone] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=334 cheap meridia] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1108 cheap zanaflex] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1129 cingular ringtones] [http://raccaelt.jubiiblog.de/ cheap viagra] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=369 wwe ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/digesyv.htm free nokia ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832225) free mtv ringtones] [http://eltvivi.blogdiario.com/ cheap vicodin] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/bipivu.htm generic meridia] [http://www.forumhosting.org/forum.php?mforum=getcoro sony ericsson ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832238) sagem ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832236) qwest ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832243) sony ringtones] [http://www.forumhosting.org/forum.php?mforum=coephrai cheap tramadol] [http://www.rso.cmich.edu/prevet/messageboard/000031d2.htm qwest ringtones] [http://letocoer.jubiiblog.de/ polyphonic ringtones] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=310&FORUM_ID=3&CAT_ID=3 but xanax] [http://www.csun.edu/learningnet/discussion/file.php?0,file=155 free sagem ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/ciby.htm free funny ringtone] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=356 sony ericsson ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=121 viagra online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=141 free free ringtones] [http://ricrotroc.blogdiario.com/ samsung ringtones] [http://eltlili.jubiiblog.de/ buy ambien] [http://ouglova.blogspot.com valium half life] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832248) ultram online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=157 free sony ericsson ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/rujop.htm generic phentermine] [http://woolygrrl.blogspot.com valium side effects] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$134 valium online] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$95 diazepam online] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/tubonyh.htm samsung ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1113 cheap hoodia] [http://acdronou.jubiiblog.de/ cheap diazepam] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832224) free mp3 ringtones] [http://alcodom.blogdiario.com/ cheap viagra] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=370 xanax] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832241) soma online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=312 adipex] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=318 order cialis] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1105 pharmacy online online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1066 cheap soma] [http://coracou.jubiiblog.de/ hydrocodone online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1094 didrex online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1087 lorazepam online] [http://www.forumhosting.org/forum.php?mforum=covarrel funny ringtones] [http://lasitdron.jubiiblog.de/ cheap sildenafil] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1084 levitra online] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/nyzihyp.htm free tracfone ringtone] [http://manka-kapak.blogspot.com casino craps online] [http://www.rso.cmich.edu/prevet/messageboard/000031c8.htm free ringtone] [http://www.forumhosting.org/forum.php?mforum=oudronacel cheap didrex] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/kukoti.htm generic cialis] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/sinyfu.htm free mp3 ringtone] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832228) free nextel ringtones] [http://ervarli.blogdiario.com/ jazz ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=148 motorola ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832235) punk ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832253) buy wellbutrin] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832204) cool ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$88 free alltel ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1134 free alltel ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=361 tramadol online] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$106 nokia ringtones] [http://discussions.csbsju.edu/general/messages/25/xyvi-237.html but viagra] [http://www.rso.cmich.edu/prevet/messageboard/000031b5.htm cheap adipex] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832230) cheap norco] [http://www.csun.edu/learningnet/discussion/file.php?0,file=134 order wellbutrin] [http://www.csun.edu/learningnet/discussion/file.php?0,file=132 lorazepam online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832234) order propecia] [http://alcta.blogdiario.com/ free sprint ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1092 ultracet] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1100 cheap zoloft] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1136 cool ringtones] [http://liboor.jubiiblog.de/ tracfone ringtones] [http://letorolac.jubiiblog.de/ free motorola ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832201) cheap cialis] [http://www.rso.cmich.edu/prevet/messageboard/000031c5.htm generic levitra] [http://domvimon.jubiiblog.de/ buy norco] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1068 phentermine online] [http://ertral.jubiiblog.de/ carisoprodol] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1074 cheap cialis] [http://enchanted1312.blogspot.com injecting valium] [http://www.forumhosting.org/forum.php?mforum=ricrolget music ringtones] [http://el5or5ro.blogdiario.com/ free motorola ringtones] [http://www.rso.cmich.edu/prevet/messageboard/000031c3.htm generic clonazepam] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1031?id=atch1128 polyphonic ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/lusuli.htm cheap viagra] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$113 sagem ringtones] [http://bocoleto.jubiiblog.de/ free alltel ringtones] [http://discussions.csbsju.edu/general/messages/25/lepef-234.html diazepam online] [http://discussions.csbsju.edu/general/messages/25/dyjys-243.html adipex online] [http://discussions.csbsju.edu/general/messages/25/zisi-231.html buy xanax] [http://olorolacel.blogdiario.com/ cheap diazepam] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832220) cheap meridia] [http://www.forumhosting.org/forum.php?mforum=vartrocvi verizon ringtones] [http://www.forumhosting.org/forum.php?mforum=safunder viagra online] [http://algettr.blogdiario.com/ cheap carisoprodol] [http://www.rso.cmich.edu/prevet/messageboard/000031b7.htm generic vicodin] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=315&FORUM_ID=3&CAT_ID=3 viagra online] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$96 cheap fioricet] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1112 flexeril online] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/jeziluc.htm adipex online] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=302&FORUM_ID=3&CAT_ID=3 soma online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832222) free mono ringtones] [http://tavidel.blogdiario.com/ sony ericsson ringtones] [http://www.forumhosting.org/forum.php?mforum=yohiatt buy meridia] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$135 verizon ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/pixe.htm cingular ringtones] [http://livisit.blogdiario.com/ cheap valium] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/pypybug.htm free nextel ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/cicyfi.htm polyphonic ringtones] [http://boricdom.blogdiario.com/ free nextel ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$107 order norco] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=335 midi ringtones] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$100 meridia online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=351 real ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=323 diazepam online] [http://roacpas.jubiiblog.de/ ultram] [http://cnac4tco.blogdiario.com/ free mp3 ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1081 alprazolam] [http://www.rso.cmich.edu/prevet/messageboard/000031da.htm free samsung ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=359 free sprint ringtones] [http://cozelrol.jubiiblog.de/ xenical online] [http://olobasno.jubiiblog.de/ free samsung ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=126 alprazolam online] [http://domrelchi.jubiiblog.de/ cheap nexium] [http://cnatadel.blogdiario.com/ buy xanax] [http://www.rso.cmich.edu/prevet/messageboard/000031d7.htm free motorola ringtones] [http://www.csun.edu/learningnet/discussion/file.php?0,file=128 but paxil] [http://vizelsit.jubiiblog.de/ free free ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1099 cheap lisinopril] [http://discussions.csbsju.edu/general/messages/25/wykypof-226.html tramadol online] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/nikol.htm ultram online] [http://www.forumhosting.org/forum.php?mforum=wiwhistl cheap vicodin] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1076 viagra online] [http://kleinerachel.blogspot.com valium ativan] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832210) online fioricet] [http://www.forumhosting.org/forum.php?mforum=aceldarro sonyericsson ringtones] [http://cnacorel.blogdiario.com/ free mono ringtones] [http://eltrli.jubiiblog.de/ vicodin online] [http://www.csun.edu/learningnet/discussion/file.php?0,file=120 ativan] [http://taoudel.blogdiario.com/ buy sildenafil] [http://www.csun.edu/learningnet/discussion/file.php?0,file=159 alltel ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=365 verizon ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=338 mp3 ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1029?id=atch1098 albuterol] [http://www.hcs.harvard.edu/~twiki/pub/Main/AngelKristofer/colivew.htm alltel ringtones] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1119 mp3 ringtones] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832203) clonazepam online] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=352 free sagem ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=345 cheap paxil] [http://wildomania.blogspot.com ambien sleep walking] [http://eltsitzel.blogdiario.com/ free sagem ringtones] [http://www.forumhosting.org/forum.php?mforum=cnataco nokia ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=367 cheap vicodin] [http://forum.kharkiv.edu/SForums/topic.asp?TOPIC_ID=318&FORUM_ID=3&CAT_ID=3 cheap norco] [http://boroltroc.jubiiblog.de/ funny ringtones] [http://dar5or5tr.blogdiario.com/ free midi ringtones] [https://www-internal.slac.stanford.edu/glast/integrationtest/online/Forum/topic.asp?TOPIC_ID=363 ultram online] [http://domdronpas.blogdiario.com/ cheap tramadol] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/nenopo.htm tramadol online] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/xoky.htm generic paxil] [http://ginny-potter21.blogspot.com caribbean casino gold online] [http://src.moffitt.usf.edu/sf/sfmain/do/downloadAttachment/projects.jaffy/tracker.bug_tracker/artf1030?id=atch1109 cheap diethylpropion] [http://www.csun.edu/learningnet/discussion/file.php?0,file=137 online ultracet] [http://www8.vjc.edu/EnvironmentalClub/discuss/msgReader$94 clonazepam online] [http://pathology.jhu.edu/N/n.web?EP=N&URL=/MCGI/SEND1^WEBUTLTY(200,832215) free jazz ringtones] [http://capasget.jubiiblog.de/ sagem ringtones] [http://www.hcs.harvard.edu/~twiki/pub/Main/CoyarCharline/kifily.htm ativan online] [http://www.forumhosting.org/forum.php?mforum=troctapas free mtv ringtones] [http://skyph0ne.blogspot.com bonus casino free online] =={{hide|navbar}}==
| + | ==Navigation== |
| {{web software|MediaWiki}}: [[MediaWiki customization|customization]]: [[shortening MediaWiki URLs]]{{sidebar|__TOC__}} | | {{web software|MediaWiki}}: [[MediaWiki customization|customization]]: [[shortening MediaWiki URLs]]{{sidebar|__TOC__}} |
| ==Overview== | | ==Overview== |
− | There are (at least) two "standard" ways of prettifying MediaWiki URLs, documented [http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url here].
| + | 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: |
| + | * [[/error handlers]] - bad idea, don't use this |
| + | |
| + | Some additional methods are documented in the [[#links]], below. |
| | | |
− | There's also another way of doing it if you have access to httpd.conf or .htaccess. It's fairly tidy and quite flexible, though I don't know how much additional load it puts on the server (see brief discussion at the end).
| |
| ==Using mod_rewrite== | | ==Using mod_rewrite== |
− | This is probably documented elsewhere, but this is what actually worked for me on a shared server where I couldn't modify httpd.conf. | + | This is probably documented elsewhere, but this is what actually worked on a shared server without root access or a shell. |
− | | |
− | This assumes MediaWiki is installed in the root of the www pages.
| |
| | | |
| First, the .htaccess file needs to include: | | First, the .htaccess file needs to include: |
| {{quoteon}} | | {{quoteon}} |
− | : | + | :<IfModule [[mod_rewrite]].c> |
| + | ::RewriteEngine on |
| + | :: |
| + | ::RewriteCond %{REQUEST_FILENAME} !-f |
| + | ::RewriteCond %{REQUEST_FILENAME} !-d |
| + | ::RewriteRule ^(.*)$ index.php/$1 [L,QSA] |
| + | :</IfModule> |
| + | {{quoteoff}} |
| + | |
| + | Second, modify LocalSettings.php: |
| + | :$wgScriptPath = ''; |
| + | :wgArticlePath = $wgScriptPath.'/$1'; |
| + | |
| + | This assumes MediaWiki is installed in the root of the www pages, e.g. <nowiki>http://yourdomain.com/Main_Page</nowiki> is the wiki's main page; if you have it in a subfolder, e.g. <nowiki>http://yourdomain.com/wiki/Main_Page</nowiki>, then: |
| + | |
| + | :$wgScriptPath = '/wiki'; |
| + | |
| + | 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. |
| + | |
| + | The above seems to work for everything (including editing) without breaking old-style URLs. |
| + | |
| + | This method is also documented here, with some minor changes: http://wiki.welldesignedurls.org/Clean_Urls_for_MediaWiki |
| + | |
| + | Wish list: |
| + | * proper handling of page named [[.htaccess]] (click on that for a demonstration of the problem) |
| + | * ability to have the wiki installed in a subdirectory while still making it appear to be in the domain's root folder |
| + | |
| + | ==Comments== |
| + | Please feel free to post comments here or on the Talk page if you try any of these procedures. |
| + | |
| + | ------------------------- |
| + | 6/23/2007: I used your .htaccess and then set ''$wgArticlePath = "$wgScriptPath/$1";''. This way the forwarding works regardless of what directory the wiki is located in. In my case it was ''/wiki''. --Jordan Mendler ({{email|jmendler|ucla|edu}}) |
| + | ------------------------- |
| + | 12/02/2007: Method worked fine, using Jordan Mendler's modification to allow for my ''/wiki'' subdirectory. You should post this on mediawiki's [http://www.mediawiki.org/wiki/Manual:Short_URL Manual:Short URL] page, as they do not have this solution listed and it seems simpler and possibly less bug-prone then other methods. --Adam Burley (AKA Bilby) (bilbyATdigitalcaveDOTorg) |
| + | ------------------------- |
| + | 2007-12-02 MW 1.11 seems to do something which breaks log-ins using the above method. I solved this once, but I'm not sure which specific change made the difference. Here's part of the LocalSettings from a MW 1.11 installation where logins work fine: |
| + | <php> |
| + | ## The URL base path to the directory containing the wiki; |
| + | ## defaults for all runtime URL paths are based off of this. |
| + | $wgScriptPath = ""; |
| + | $wgScriptExtension = ".php"; |
| + | |
| + | # standard Woozle MW customizations |
| + | $wgScript = "$wgScriptPath/index.php"; |
| + | $wgArticlePath = "/$1"; |
| + | $wgUsePathInfo = false; |
| + | </php> |
| + | |
| + | ==Links== |
| + | * <s>[[metawikipedia:Eliminating index.php from the url|Eliminating index.php from the url]]</s> moved/consolidated |
| + | * [[mwsite:Manual:Short URL|Manual:Short URL]] |
| + | * [http://wiki.welldesignedurls.org/Clean_Urls_for_MediaWiki Clean URLs for MediaWiki] |
Navigation
computing: software: web: MediaWiki: customization: shortening MediaWiki URLs
Overview
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:
Some additional methods are documented in the #links, below.
Using mod_rewrite
This is probably documented elsewhere, but this is what actually worked on a shared server without root access or a shell.
First, the .htaccess file needs to include:
- <IfModule mod_rewrite.c>
- RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php/$1 [L,QSA]
- </IfModule>
|
Second, modify LocalSettings.php:
- $wgScriptPath = ;
- wgArticlePath = $wgScriptPath.'/$1';
This assumes MediaWiki is installed in the root of the www pages, e.g. http://yourdomain.com/Main_Page is the wiki's main page; if you have it in a subfolder, e.g. http://yourdomain.com/wiki/Main_Page, then:
- $wgScriptPath = '/wiki';
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.
The above seems to work for everything (including editing) without breaking old-style URLs.
This method is also documented here, with some minor changes: http://wiki.welldesignedurls.org/Clean_Urls_for_MediaWiki
Wish list:
- proper handling of page named .htaccess (click on that for a demonstration of the problem)
- ability to have the wiki installed in a subdirectory while still making it appear to be in the domain's root folder
Please feel free to post comments here or on the Talk page if you try any of these procedures.
6/23/2007: I used your .htaccess and then set $wgArticlePath = "$wgScriptPath/$1";. This way the forwarding works regardless of what directory the wiki is located in. In my case it was /wiki. --Jordan Mendler (jmendlerspam@spamuclaspam.spamedu)
12/02/2007: Method worked fine, using Jordan Mendler's modification to allow for my /wiki subdirectory. You should post this on mediawiki's Manual:Short URL page, as they do not have this solution listed and it seems simpler and possibly less bug-prone then other methods. --Adam Burley (AKA Bilby) (bilbyATdigitalcaveDOTorg)
2007-12-02 MW 1.11 seems to do something which breaks log-ins using the above method. I solved this once, but I'm not sure which specific change made the difference. Here's part of the LocalSettings from a MW 1.11 installation where logins work fine:
<php>
- The URL base path to the directory containing the wiki;
- defaults for all runtime URL paths are based off of this.
$wgScriptPath = "";
$wgScriptExtension = ".php";
- standard Woozle MW customizations
$wgScript = "$wgScriptPath/index.php";
$wgArticlePath = "/$1";
$wgUsePathInfo = false;
</php>
Links