i think i've found a rather simple way to avoid the mod_rewrite ability in order to use SEF urls
Apache
1. Enable SEF in mambo configuration
2. do NOT rename the htaccess.txt
3. open /includes/sef.php and change this line: (~ line 217)
return $mosConfig_live_site."/".$string;
to
return $mosConfig_live_site."/index.php/".$string;
For this to work, you will have to make sure AccepPathInfo is set to on in the apache configuration.
IIS
for IIS or if you can't get the above working use :
return $mosConfig_live_site."/index.php?".$string;
it could also be needed to add this to your sef.php
Code: Select all
$_SERVER['REQUEST_URI'] = (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);
// Append the query string if it exists and isn't null
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
}
if ($mosConfig_sef) {
)
this will enable SEF urls to work without mod_rewrite at all..
and create urls like this:
http://www.site.ext/index.php/content/view/9/34/
http://www.site.ext/index.php/content/view/10/35/
http://www.site.ext/index.php/component ... Itemid,78/