Badakhshan
Member
hi i need redirect my old site urls to new urls
example :
www.oldsite.com/articles/title/id to www.newsite.com/threads/title.id/
i added a simple controller
class oldtonew extends AbstractController {
public function actionIndex(ParameterBag $params)
{
$url = $_SERVER['REQUEST_URI'];
\XF::app()->error()->logError($url);
}
}
and a route in development routes menu
Route prefix : articles
Controller: "address of controller"
but not working.
where is it problem?
example :
www.oldsite.com/articles/title/id to www.newsite.com/threads/title.id/
i added a simple controller
class oldtonew extends AbstractController {
public function actionIndex(ParameterBag $params)
{
$url = $_SERVER['REQUEST_URI'];
\XF::app()->error()->logError($url);
}
}
and a route in development routes menu
Route prefix : articles
Controller: "address of controller"
but not working.
where is it problem?