Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects
- freespirit
- Člen | 7
Pri nasadeni aplikacie na produkcny server dochadza k nekonecnemu loopu redirectov, pricom aplikacia na localhoste aj na dalsom dev serveri (uz v prod mode) funguje bezproblemovo. Skusal som menit aj htaccess ale ten na to ocividne nema vplyv. Zo strany hostingu moc napomocny nie su, odkazali akurat na prekontrolovanie aplikacie, som si ale isty ze to bude nastavenim servera.
$_SERVER[‚DOCUMENT_ROOT‘] je /home/www, skutocna path je ina, skusil som
to aj pridat do indexu
vo forme $_SERVER[‚DOCUMENT_ROOT‘]=‚/home/sitename/home/www‘; , ako som
sa docital tu na fore, ale nepomohlo to.. Mate niekto aspon trochu predstavu cim
by to mohlo byt?
dakujem
- Oggy
- Člen | 306
Narazil jsem na stejný problém..
Mám tyto routy:
<?php
//ESHOP KATEGORIE
$eshopRouter[] = $route = new FilterRoute('//eshop.xxx.<lang>[/kategorie:<category_id>][/sortiment:<assortment_id>][/barva:<colorGroup_id>][/kolekce:<collection_id>]', array(
'lang' => array(
Route::FILTER_IN => callback('AppRouter::langIn'),
Route::FILTER_OUT => callback('AppRouter::langOut'),
),
'presenter' => 'Category',
'action' => 'default',
'category_id' => NULL,
'assortment_id' => NULL,
'colorGroup_id' => NULL,
'collection_id' => NULL
));
$route->addFilter('category_id', callback(array($container->modelLoader->category, 'urlToId')), callback(array($container->modelLoader->category, 'IdToUrl')));
$route->addFilter('assortment_id', callback(array($container->modelLoader->assortment, 'urlToId')), callback(array($container->modelLoader->assortment, 'IdToUrl')));
$route->addFilter('colorGroup_id', callback(array($container->modelLoader->colorGroup, 'urlToId')), callback(array($container->modelLoader->colorGroup, 'IdToUrl')));
$route->addFilter('collection_id', callback(array($container->modelLoader->collection, 'urlToId')), callback(array($container->modelLoader->collection, 'IdToUrl')));
//ESHOP OBECNY
$eshopRouter[] = $route = new FilterRoute('//eshop.xxx.<lang>/<presenter>/<action>[/<id>]', array(
'lang' => array(
Route::FILTER_IN => callback('AppRouter::langIn'),
Route::FILTER_OUT => callback('AppRouter::langOut'),
),
'presenter' => 'Category',
'action' => 'default',
'id' => NULL
));
$route->addFilter('presenter', 'AppRouter::UrlToPresenter', 'AppRouter::presenterToUrl');
$route->addFilter('action', 'AppRouter::UrlToAction', 'AppRouter::actionToUrl');
?>
Pokud jednu z rout vynechám, funguje..
Funguje to i pokud jsou v url parametry kategorie, kolekce .. atd
(z prvni routy)
ale pokud jde o adresu eshop.xxx.<lang> tak dochází ke smyčce ..
na locale to nedělá.