SBSGroup

Mob.: +38 (093) 630-56-50
ICQ: 58 91 91 91
email:info@sbsgroup.com.ua

 
by english ïî ðóññêè
 

08.04.08 - Going CMS SmartEngine to mod_rewrite
10.05.07 - CMS SmartEngine is already AJAX!
10.02.07 - CMS SmartEngine is protected by Law
15.01.07 - New service Operator On-Line is avaliable on our site
27.12.06 - HAPPY NEW 2007 YEAR

News


news archive

Going CMS SmartEngine to mod_rewrite

08.04.08

Here is described instructions of going CMS SmartEngine to mod_rewrite

1. Change content of the .htaccess in the root folder to:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?%{QUERY_STRING}

2. Open file classes/web_interface.class.php

3. Change line
$path_info = $_SERVER["PATH_INFO"];
to
if(isset($_SERVER["PATH_INFO"]))
$path_info = $_SERVER["PATH_INFO"];
if(isset($_SERVER["REQUEST_URI"]))
$path_info = $_SERVER["REQUEST_URI"];
if($this->registry->path!="/")
$path_info  = str_replace($this->registry->path, "", $path_info );   
$path_info  = str_replace("site/", "", $path_info );               

4. Before line
// LANGUAGE SET
add text
// GET QUERY EXCEPTION
if($get_pos = strpos($path_info, "?")) $path_info = substr($path_info, 0, $get_pos);           
$this->model->query = $this->query = split("/", $path_info);

5. Save changes and check the site

 

SBSGroup copyrights © 2006 - 2007