What is the feature that makes the URLS in TangoCMS?

Support related questions that don't fit into the other categories.

What is the feature that makes the URLS in TangoCMS?

Postby macdonaldaas » 08 Mar 2009, 01:24

Hi,
I was wondering if anyone knew the feature/code that makes Tango CMS be able to make pages so accesible through the site. In other words, each page does not have a file extension when viewed in the front end. How does it do this? Ex: http://tangocms.org/about
Any help is greatly appreciated. If it's a MySQL feature, can you please include what version is needed for this feature? Thank you.
Thanks in advance!
macdonaldaas
 
Posts: 2
Joined: 08 Mar 2009, 01:13

Re: What is the feature that makes the URLS in TangoCMS?

Postby AlexC » 08 Mar 2009, 08:18

Hi there,

It is done at the webserver level, both Lighttpd and Apache have a 'mod_rewrite' module that lets you rewrite the URL given, to something else (such as an existing foobar.php file). In TangoCMS (when using the SEF router, and the webserver is setup to allow mod_rewrite usage) all requests are rewritten to index.php?url=about (in the example you gave). It is quite simple, take a look at the .htaccess file in the TangoCMS archives to see how it is done.
User avatar
AlexC
Site Admin
 
Posts: 167
Joined: 11 Dec 2007, 21:23
Location: Shropshire, UK


Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron