<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?router=$1 [L,QSA]
</IfModule>
private function getSections($addr)
{
$this->sections = explode("/", $addr);
$num = count($this->sections)-1;
if($num>0)
{
unset($this->sections[0]);
if($this->sections[$num]=="") unset($this->sections[$num]);
}
}
private function getSections($addr)
{
$sections = explode("/", $addr);
$num = count($sections)-1;
if($num>0)
{
unset($sections[0]);
if($sections[$num]=="") unset($sections[$num]);
}
return $sections;
}
#LoadModule headers_module libexec/apache2/mod_headers.so
Так, или что-то еще?