Sujet : Problème de configuration du rewriting
Bonjour,
J'ai un gros problème pour l'url rewriting, je n'arrive pas à configurer le rewrite.
Mon url vers laquelle je pointe est : http://localhost/_iZite/Http_sites/Public/
Mon .htaccess ( http://localhost/_iZite/.htaccess ) est :
Options +FollowSymlinks
RewriteEngine On
RewriteBase /_iZite/
# Première solution.
#RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
#
# Routeur SITE WEB
#
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1et mon bootstrap ( http://localhost/_iZite/Http_sites/Public/Index.php ) est :
$parameters = array(
"route.type" => "Rewrite",
"route.parameter.base" => "/_iZite/Http_sites/Public",
'controller.directory' => 'hoa://Http_sites/Controller/',
'model.share.directory' => 'hoa://Http_sites/Model/(:Controller)/',
'view.directory' => 'hoa://Http_sites/View/(:%view.theme:)/',
"route.parameter.rules.default.pattern" => "/(:action).html",
"route.parameter.rules.default.default.module" => "index",
"route.parameter.rules.default.default.action" => "index",
"route.parameter.rules.complex.pattern" => "/(:idSite)/(:action.html",
"route.parameter.rules.complex.default.idSite" => "1",
"route.parameter.rules.complex.default.module" => "index",
"route.parameter.rules.complex.default.action" => "index",
);
/******************************************************************************/
$controller = Hoa_Controller_Front::getInstance($parameters);
$controller->addRequest(0, $parameters);Les problèmes sont les suivants :
Si je tape l'url -> http://localhost/_iZite/Http_sites/Public/
j'obtient cette erreur :
Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 24 in C:\wamp\www\_iZite\Framework\Library\Controller\Router\Rewrite.php on line 279
Warning: array_shift() [function.array-shift]: The argument should be an array in C:\wamp\www\_iZite\Framework\Library\Controller\Router\Rewrite.php on line 290
Hoa_Controller_Dispatcher_Abstract::dispatch: (0) Primary controller IndexController should be in the file hoa://Http_sites/Controller/Index.php, but this last is not found. in C:\wamp\www\_iZite\Framework\Library\Controller\Dispatcher\Abstract.php at 290.
Attention, contrôleur non trouvé. Erreur 404 donc...et si je tape cette adresse http://localhost/_iZite/Http_sites/Public/3/ j'obtient cette erreur :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.Donc la un gros problème de reroutage.
Merci de m'aider j'en ai vraiment besoin.