Different URI types
FundaNemt currently supports 6 different types of URIs. To use other than the default URI type, first copy the example htaccess file distributed with the FundaNemt release to the web root. This will allow FundaNemt to handle virtual URIs, by sending URLs that does not exist on disk to the FundaNemt system and then letting it see if it matches a page in the database.
Placing the htaccess file correctly.
$ cp fundanemt/extra/htaccess-staticurls .htaccess
FundaNemt automaticly translates the virtual page requests into ID-numbers of pages in the database, and then presents the result just as if it had gotten the page ID in a normal fasion.
Furthermore the menu system, links on pages (insert using FundaNemts link-notation or link-selector) and in the site-path is created as the URL type selected in the configuration file.
Choosing a URL type
Next you have to choose between the 6 URI types and write your choise in the configuration file.
$ vi fundanemt/conf/config.php
Find the line containing URL_TYPE and enter the number corresponding your choise
- Standard URL type - index.php?ID=12&lang=da
- ID.html, e.g. 12.html
- sektion.subsektion.html
- sektion_subsektion.html
- sektion/subsektion/
- sektion/subsektion.html