Page 1 of 1

Wiki URL format change

Posted: Mon Mar 31, 2008 2:00 am
by Dinoguy1000
Well, you all should remember a few week back, I was talking some pretty big game about changing the format for XW URLs once and for all. Well, I talked the talk, and then tried to walk the walk... and I found out it's a helluvalot harder than I thought it would be. :constipated: That's not all I discovered, though...

For starters, it struck me that the most natural structure for the URLs, based on simplicity as well as MediaWiki's installation directory, is not wiki.xentax.com/wiki/Page name, as was previously decided, but actually wiki.xentax.com/Page name, which (IMHO) is much cleaner-looking, and which should be (in theory, for what it's worth) easier to implement.

The other important thing that struck me is that computers are fickle as hell. It's the type of thing you should really know all along, but you never truly appreciate it until you're trying to implement something perfectly in a live environment when you've never really done it before, and you've got to call on the webmaster to bail your sorry ass out of a nonfunctional tight spot for, like, the third time (sorry Mr.Mouse, and many thanks for your seemingly limitless patience :wink: ).

So, to wrap up this update/mini-rant, I'm going to re-approach this update as I get the time, reading reference material, taking a more careful look at files, jotting down notes, and finally, carefully documenting what I actually try in this thread. If anyone else cares to pitch in with comments, suggestions, observations, or personal insults, feel free to. :)

EDIT: As a bit of a footnote, should this stay in the WIKI forum, where only WAdmins (Wiki Admins, I made it up on the spot, whaddaya think? ...no? Okay, didn't think so...) can read and comment on it, or should it be moved to the "Miscellany" forum for everyone to have a look?

Re: Wiki URL format change

Posted: Mon Mar 31, 2008 7:32 am
by Mr.Mouse
Hehe, no problem, if you screw up a fourth time, I'll still bail you out ;)

Anyway, implementing (web) updates can be a pain, you have to take heed of the version of the wiki needed, in this case php5 versus php4, which files to edit when etc. Don't worry, we've all been there. :)

We can bring this URL matter out in the open, yes. I'll move the thread.

Re: Wiki URL format change

Posted: Sat Apr 05, 2008 4:42 pm
by Dinoguy1000
All right, after doing some research, I've learned a few things:
  • MediaWiki is unnecessarily complicated and fickle when it comes to shortening its URLs
  • Even people with a great deal of experience with PHP, Regular Expressions, MediaWiki, and .htaccess struggle to get MediaWiki to play nice with shorter URLs - one person commented that he worked with it for two hours before getting results
  • Even after the necessary changes were made and tweaked so that MediaWiki accepted them, many people had problems with several subfolders, and in some cases, random.php, and even Favicon.ico
  • All of this is really making my head hurt
If anyone has any comments to make or anything at this point, I'm all ears.

Re: Wiki URL format change

Posted: Sat Apr 05, 2008 5:32 pm
by Mr.Mouse
It seems your analysis would argue against the change of the URL. I say let's forget it then.

Re: Wiki URL format change

Posted: Sat Apr 05, 2008 6:55 pm
by Dinoguy1000
Well, I'd really rather not, but I'm also not about to argue. I don't intend to give up on it in the long run, but there are other, better things to be done in the meantime (for instance, I was intending to get back to working on SVG support). In any case, did you ever get around to doing the custom BBCode I requested?

Re: Wiki URL format change

Posted: Sun Apr 27, 2008 2:35 pm
by Mr.Mouse

Re: Wiki URL format change

Posted: Mon Apr 28, 2008 5:15 pm
by Dinoguy1000
Aah, very nice! Now I don't have to worry about breaking a million and one links from the forum if/when I ever get the new URLs working... :D

EDIT: I'm not quite sure how best to say this, so I'll come right out and say it: it seems that for the wiki= tag, you crossed the pagename and label variables, ending up with [ wiki=label]pagename[/wiki ], which is opposite of how url= does it. The fix should be just a simple swapping of variable numbers in either the BBCode or the replacement HTML (whichever you choose). But then, I should just be happy that you finally got around to doing it... :mrgreen:

Re: Wiki URL format change

Posted: Mon Apr 28, 2008 6:21 pm
by Mr.Mouse
DOne....It was actually my own logic to RevErse it. oO/

Re: Wiki URL format change

Posted: Mon Apr 28, 2008 7:47 pm
by Dinoguy1000
Aah, I see... it *does* make sense in certain circumstances, I suppose... In any case, thanks for putting up with my constant badgering and nitpicking... :P