As there doesn't seem to be any doc pages on this i'll add notes here about where the code is at the moment, much of this could do with some refactoring and improvements, but this is how things stand as of Tiki 17.x
There is also this page Search engine optimization which seems to contain notes also about SEFURLs, not SEO (TODO tidy up)
In Principle
The rules for Tiki's SEFURL system currently exist in two places (bad), one is in the database table called tiki_sefurl_regex_out
which processes "raw" non-|SEFURL links (such as tiki-index.php?page=FooBar and makes that just FooBar or tiki-view_tracker_item.php?itemId=42 and makes that item42)
These rules are then sort of duplicated in route.php
which takes an inout path of item42 and steers that to tiki-view_tracker_item.php with $_GET'itemId' = 42.
Administration
There is a "master" preference feature_sefurl
and it has it's own control panel admin/include_sefurl.php
and corresponding tpl file.
Page Slugs
In Tiki 13 (?) wiki pages got specifiable page slugs and new Wiki URL Schemes (pref "wiki_url_scheme") and can be set to urlencode (Tiki Classic), underscore or dash which became the default in Tiki 17.0.
Code Locations
-
tiki-sefurl.php
This file (should be a library in lib somewhere, but isn't) contains the function filter_out_sefurl
which takes a raw URL and converts it to a SEFURL using the tiki_sefurl_regex_out table and some extra code for unusual cases.
-
route.php
As stated above, this converts a short URL back to the script name and input parameters. It used to all happen in the .htaccess file but this was converted to PHP for better portability.
-
lib/smarty_tiki/modifier.sefurl.php
This is the most widely used Smarty modifier that converts an object "reference" into either a SEFURL of unfriendly one if the feature is disabled.
-
lib/smarty_tiki/function.sefurl.php
Annoyingly used in the Structures header only, needs to be refactored and removed (one day)
-
lib/core/Tiki/Wiki/SlugManager.php
Plus the generators in lib/core/Tiki/Wiki/SlugManager handle the wiki page slugs dependent on pref wiki_url_scheme.
-
lib/smarty_tiki/function.object_link.php
Related Smarty function for generating links to objects of most kinds. Uses smarty_modifier_sefurl
internally.
Open
[-]
Pending
[+]
Closed
[+]Rating | Subject | Submitted by | Importance | Easy to solve? | Priority | Category | Volunteered to solve | Created | LastModif | Comments | |
---|---|---|---|---|---|---|---|---|---|---|---|
(0) | Original document URL is invalid on the print page | luciash d' being 🧙 | 8 | 40 |
| luciash d' being 🧙 | 2014-01-24 | 2014-07-18 | 0 | ||
(0) | Feil to create pages with letter æøå | Arild Berg | 10 high | 50 |
| 2015-09-29 | 2015-11-23 | 3 arild-29 Sep 15 | |||
(0) | Can't change language on homepage | Jean-Marc Libs | 3 | 15 |
| Jean-Marc Libs | 2018-02-15 | 2018-03-27 | 3 Jyhem-20 Feb 18 | ||
(0) | tiki-pagehistory.php URLS are long & ugly (but we need diff urls working) | Marc Laporte | 2 | 4 | 8 |
| manivannans | 2013-11-17 | 2017-01-16 | 6 Bsfez-17 Jan 17 | |
(2) | Share access rights when using Share or Tell a friend fails in both cases with SEFURL enabled | Xavier de Pedro | 7 | 4 | 28 |
| Jonny Bradley | 2014-05-02 | 2020-03-22 | 1 jonnybradley-18 Apr 16 | |
(0) | Brand new install forces to display Homepage as if SEFURL was enabled (but fails if disabled server side like in show.t.o) | Xavier de Pedro | 7 | 5 | 35 |
| 2016-06-13 | 2016-08-17 | 0 | ||
(0) | It is not possible to name a page starting with "tiki wiki" | Bernard Sfez / Tiki Specialist | 5 | 5 | 25 |
| 2020-04-14 | 2022-11-29 | 2 Bsfez-15 Apr 20 | ||
(0) | htaccess.sh is gone from Tiki26 and after the installation you may need to create the symlink manually | Bernard Sfez / Tiki Specialist | 7 | 5 | 35 |
| 2023-09-21 | 2024-02-12 | 3 Bsfez-14 Feb 24 | ||
(1) | Page language, site language and multilingual keywords and description language are not synchronised when using SEFurl | Bernard Sfez / Tiki Specialist | 8 | 6 | 48 |
| Jonny Bradley | 2020-11-30 | 2021-01-06 | 1 Bsfez-06 Jan 21 | |
(0) | relative links with url like "show:MySlideshow" are not prepended the domain in the url | Xavier de Pedro | 4 | 8 | 32 |
| 2013-11-16 | 2021-08-05 | 5 luci-09 Apr 14 | ||
(0) | short links indicating tab number do not work anymore after upgrade from 9.x to 12.x | Xavier de Pedro | 7 | 8 | 56 |
| 2013-11-17 | 2013-11-22 | 4 xavi-22 Nov 13 | ||
(0) | A new pref: Canonical domain (overridable per perspective) | Marc Laporte | 4 | 8 | 32 |
| 2014-08-11 | 2014-11-14 | 0 |
Related
Alias names for this page:
SEF URLs | SEFURLs | SEF URL | SEFURL | sefurl | sefurls | Search Engine Friendly URLS | Search Engine Friendly | SEF