Loading...
 
Skip to main content

Development


You are viewing a reply to international URLs

Re: Re: Re: international URLs

> > mediawiki uses the following format of internal links : /wiki/BlahBlah
> > Such links are showed unencoded in address bar of most browsers.
> >
> > TikiWiki uses links in format : /tiki-index.php?page=XX
> > They are shown UTF-8 encoded when title contain international letters.
> >
> > Is it possible to change format of Tiki links to mediawiki variant ?
>
> Sure, just rename the _htaccess file in the Tiki root to .htaccess and Apache URL rewriting is activated, as at this site. But I'm afraid that doesn't stop international page names from being encoded. (See http://zukakakina.com/???Question. Page name and thus URL contain Japanese kanji for "nihongo". Page name is displayed correctly on the page and but encoded in the URL. When accessing that address, the URL is displayed correctly in my browser address gadget, but I get a page not found error indicating the URL wasn't correctly correlated to a page name.)

I've already tried to activate _htaccess before starting this thread.

There are following rules for wiki pages in _htaccess

RewriteRule
(-_\+A-Za-z0-9+)$ tiki-index.php?page=$1 QSA,L

  1. for multi-byte char support use
RewriteRule
/(^a-z+)(^\/+)(^tki-+)(.*^.js+)(~?)(.*)$ tiki-index.php?page=$1$2$3$4$5$6$7$8$9 QSA,L


As I suggest, they should rewrite urls like www.org/Text to www.org/tiki-index.php?page=text

BUT, Tiki _wiki_ parser still continue to generate URLs like a "/tiki-index.php?page=BlahBlah",
and not like a "/BlahBlah", so we return to "/tiki-index" URL version after the first click on link.

So, I want to learn Tiki Wiki parser to parse Wiki markup to HTML code with producing of URLs like a "/BlahBlah", or "/wiki/BlahBlah" instead of "/tiki-index.php?page=BlahBlah".

Can you tell me where is file with code that parses wiki links ( something ) to html code


Thank you!