Fullscreen
Development of Tiki Layers for Search Engine Friendly URLs
Print

SEFURLsDev

The actual Project for this work is at: http://mods.tikiwiki.org/tiki-project.php?projectId=14

UPDATE 23rd May, 2005
I've released the first proper version of the Tiki URLt package. This is essentially everything you need to be able to use URL transformations, thus acheiving Search Engine Friendly URLs.

The solution is actually really neat, with some helpful features, including:
  • Super-fast HTML parsing and URL translation
  • Advanced cached database reads for greater efficiency (configurable!)
  • Handles errors gracefully (eg. Page Not Found, Translation Error)
  • Can handle non-PHP content (configurable MIME types)
  • Works on any web server (Apache, IIS, etc) or can be used with Apache mod_rewrite
  • Written to the latest Tiki guidelines (ie. ADODB, PHPdoc, etc)
  • Tested and working on Tiki 1.8.5 and 1.9.0 (but should also work with other versions)

Until I can get this into the proper Tiki project (linked above), you can get Tiki URLt at my website:
http://www.coofercat.com/wiki/TikiURLt (external link)
(what a lovely URL ;-)

...Coofer Cat (external link)

Current Known Issues
(1) The HTML parser in the output filter does not handle JavaScript? links correctly. This is not ideal, but it is unlikely the parser will ever really be able to translate links embeded in JavaScript?.
(2) Smarty seems to submit the same template information multiple times. This means that URLs are double-translated, so the "stop on match" facility is somewhat diminished in value. A Tiki bug has been raised for the problem, although it may be a broader Smarty issue.
(3) Tiki programs that return HTTP redirects (ie. "302 Location:" headers) are not available to the output filter. As a result, the redirects do not bear translated URLs. It is unclear how to solve this issue (are outgoing headers available to PHP4? If so, how!?)
(4) Numerous Tiki programs do not output consistent URLs. For example, a blog page post is identified as "tiki-view_blog_post.php?blogId=1&PostId=1". However, the link "back to blog" is "tiki-view_blog_post.php?find=&blogId=1&PostId=1...". Whilst only a slight difference in ordering, and no doubt easily done, this causes immense problems for URL translations. It is unclear how this can be overcome in a sensible Tiki-wide way.
(5) Blogs are a real pain in the neck for SEFURL work. I'm not sure what the solution is, short of some major blog hackery.
(6) Actually making regex transformations work is a really difficult process. Users require intimate knowledge of regexes, and how web pages are delivered and how requests are made. As a result, this is a very advanced feature, which only the very cunning should consider!


Contributors to this page: coofercat68 points  .
Page last modified on Monday 23 May 2005 18:33:43 CET by coofercat68 points .

Search by Page Name

IRC chat

Menu

Shoutbox

redsoul5 points , 15:58 CET, Thu 28 May 2009: Hi, everybody! I am a chinese,.I was bulding up my owe website whit tikiwiki, and it seems too complicated for me to master it in short time. See my website www.zbzcr.com,
redsoul5 points , 15:40 CET, Thu 28 May 2009: hi~~
xavi2327 points , 09:29 CET, Tue 03 Mar. 2009: oups, plugin version only works for registered users here in tw.o. E.g.: [Link]
chibaguy2802 points , 20:27 CET, Sat 28 Feb. 2009: orionrobots, I'm updating Planetfall for Tiki 3 so would be interested in what you're doing. :-)
orionrobots62 points , 17:04 CET, Sat 28 Feb. 2009: Hooray! Orionrobots upgrade and rebrand complete. When there is some time, I need to bubble back changes I had to make to planetfall to make it work - it is not quite complete.