#my .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ bootstrapClass.php [NC,L] RewriteCond %{REQUEST_URI} !^/public/ RewriteRule ^(.*)$ public/$1 [L] php_flag magic_quotes_gpc off php_flag register_globals off php_value session.auto_start 0 Options -Indexes #my index _redirect("security/loginuser"); } #bootstrap class registerPlugin(new Initializer('dev',ROOT)); $front->dispatch(); }catch(Zend_Controller_Action_Exception $e){ header("Location: " . BASE_URL . "/security/loginuser/error/".urlencode(Messages::getMessage("GENERAL","PAGE_NOT_FOUND"))); }catch(Exception $e){ print $e->getMessage(); }