Prob hébergement dispatch
Bonjour,
je viens de transférer mon site chez un hébergeur (siteground.com), je vois ma page d'accueil, mais toutes URL internes de mon site reroutent vers cette page d'accueil !
Voici mon htaccess :
Code:
1 2 3 4 5
| RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
Options -Indexes |
et dans mon bootstrap :
Code:
1 2
| // Include directories and autoload
set_include_path ( '.' . PATH_SEPARATOR . '../library/' . PATH_SEPARATOR . '../library/Zend/' . PATH_SEPARATOR . 'FRAMEWORK_1.7.1_HOME' . PATH_SEPARATOR . '../application/btmodels' . PATH_SEPARATOR . get_include_path () ); |
puis :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| $controller = Zend_Controller_Front::getInstance ();
$controller->setControllerDirectory ( '../application/default/controllers' );
$controller->throwExceptions ( true ); // should be turned on in development time
$controller->registerPlugin ( new Bt_Plugin_Auth ( $auth, $acl ) );
//$controller->registerPlugin(new Bt_Plugin_Agreement($auth));
$controller->setParam ( 'auth', $auth );
$controller->setBaseUrl ( 'http://www.bounty-tours.com' );
// bootstrap layouts
Zend_Layout::startMvc ( array ('layoutPath' => '../application/default/layouts', 'layout' => 'main' ) );
// run!
//$controller->dispatch ();
Zend_Controller_Front::run('../application/controllers'); |
Merci d'avance de votre aide !!!
Reprob avec autre htaccess
Je viens d'essayer le htaccess de la doc ZF :
Code:
1 2 3 4 5 6
| RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L] |
:cry: et j'ai toujours le même problème ...