Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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
- <?php
- header("location:index/index");
- if I header("location:/index/index"); he redirect to
- localhost/index/index/
- #indexAction
- public function indexAction(){
- $this->_redirect("security/loginuser");
- }
- #bootstrap class
- <?php
- define( 'ROOT', dirname( __FILE__ ) );
- set_include_path(
- '.'
- . PATH_SEPARATOR.get_include_path()
- . PATH_SEPARATOR . ROOT . '/../library'
- . PATH_SEPARATOR . ROOT . '/app/models'
- . PATH_SEPARATOR . ROOT . '/app/util'
- . PATH_SEPARATOR . ROOT . '/../library/phpids-0.6.5/lib'
- );
- include "Zend/Loader/Autoloader.php";
- $autoloader = Zend_Loader_Autoloader::getInstance();
- include "app/Initializer.php";
- include "Messages.php";
- include "Error.php";
- try{
- $front = Zend_Controller_Front::getInstance();
- $front->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();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement