Articles » Administrator » Different URL types
Author

Brian Jørgensen is a 9th semester, Software Engineering student at Aalborg University. He works as a freelance developer and on Fundanemt.

Website
E-mail

Different URL Types

by Brian Jørgensen, March 2005. Last updated July 31st 2005.

Fundanemt currently supports 7 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 determine if it matches a page in the database.

It is very easy to change what URLs an Fundanemt installation should use. It only requires two steps.

  • Let Fundanemt handle virtual URLs
  • Tell Fundanemt what URL type it should use

Placing the htaccess file correctly.

$ cp fundanemt/extra/htaccess-staticurls .htaccess

Fundanemt automatically 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 fashion.

Furthermore the menu system, links on pages (insert using Fundanemt's 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
  1. Standard URL type - index.php?ID=12&lang=da
  2. ID.html, e.g. 12.html
  3. section.subsection.html
  4. section_subsection.html
  5. section/subsection/
  6. section/subsection.html
  7. language/section/subsection/

Article History

Update: Sunday, July 31 2005
Updated article with information about the new URL type supporting multiple languages.