URL Styles

Ismo can use either the query string or path info to get information about a request. The query string method is used by default. To setup the path info method follow the instructions below:

Path Info setup

Ismo_Core 0.1.4

Add the following line to your do.php file in your public web directory:

$app->setURLStyle(ISMO_CORE_PATHINFO_STYLE);

.htaccess setup

After setting Ismo to handle the path info based requests, create a .htaccess file in your public web directory to route the requests to do.php

# Based on Rails 0.10.0 .htaccess (www.rubyonrails.com)
# Acquired form the Cake (http://sputnik.pl/cake/) project
 
<IfModule mod_rewrite.c>
 
# Redirect all requests not available on the filesystem to Ismo
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ do.php/$1 [QSA,L]
 
# In case Ismo experiences terminal errors
ErrorDocument 500 500.html
 
</IfModule>
 
docs/url_styles.txt · Last modified: 2006/04/27 20:11
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki