About Sitellite       Screenshots       Downloads       Forge      Documentation       Community       Support

You are here: Home / Documentation / Search Engine Friendly URLs in Sitellite

Search Engine Friendly URLs in Sitellite

Calling boxes from the URL

Sitellite extends the page value format to allow you to specify boxes from different Sitellite apps, without breaking the search engine friendliness.  This model is as follows:

http://www.example.com/index/myapp-boxname-action

The "-action" denotes that this is a box and not an ordinary page, and the other dash(es) separate the app name from the box name (or rather, the box <em>path</em>).  This scheme allows you to still include a hierarchy of boxes within your apps, and still access them from the URL.  For example:

http://www.example.com/index/myapp-outerbox-innerbox-thirdbox-action

This would map to the file: inc/app/myapp/boxes/outerbox/innerbox/thirdbox/index.php

However, the caveat is that any box that is to be accessed from the URL, ie. accessed as an "action", needs sufficient access to be granted in an access.php file.  The access.php files live in the box folders with the index.php files, and are inheritable from subfolders.  To enable our box, we would need an access.php file with the following contents:

; <?php /*
sitellite_access = public
sitellite_status = approved
sitellite_action = on

; */ ?>

We can now call our box, and boxes underneath it (unless otherwise set), via the URL.  This drastically increases the power of the Sitellite development model by making boxes equal to ordinary pages.

If you need an idea for a box to test this out with, may I recommend:

<?php

echo 'Hello World!';

?>


Page 1: What is URL rewriting?
Page 2: Basic conversions
Page 3: Calling boxes from the URL
Page 4: Calling forms from the URL
Page 5: Referring to the URL components using the Sitellite API

All Tutorials

Members

Note: You can use your SitelliteForge.com account here and vice versa.

Username

Password

Forgot your password?

Not a member? Click here to register

Sitellite 5 Beta


Copyright © 2008, SIMIAN systems Inc.
All rights reserved. Privacy policy
Some of the icons on this site were created by the Gnome Project.