From fde470ec8811e71b8497527ed7f440fed109afd2 Mon Sep 17 00:00:00 2001
From: Tom Homer URL Routing
$_SERVER['PATH_INFO'] variable. Please try it out before you go public with your site.
Advanced feature: If you use IIS as a Web server and want to remove "index.php" from URLs you access, you will have to create the appropriate web.config file in the same directory as lib-common.php, with the proper redirects defined.
++ <configuration> + <system.webServer> + <rewrite> + <rules> + <rule name="Imported Rule 1" stopProcessing="true"> + <match url="^(.*)$" ignoreCase="false" /> + <conditions> + <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> + <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> + </conditions> + <action type="Rewrite" url="/index.php/{R:1}" /> + </rule> + </rules> + </rewrite> + </system.webServer> + </configuration> ++
Advanced feature: If you use Apache as a Web server and want to remove "index.php" from URLs you access, you have to do the following things. Be warned! Unless you are familiar with Web server configurations, you might as well not use this feature.