I am trying to redirect to google.com using Magento.
Mage::app()->getResponse()->setRedirect('http://google.co.in'));
But when I use this code, I also cannot open the home page. It shows a blank page.
What other code can I use instead so that I can redirect to google.com?
This should do the trick:
Mage::app()->getFrontController()->getResponse()->setRedirect('http://google.com');
Also, in your example, you end up with a double), this could be a problem in your code.
to try
Mage::app()->getResponse()->setRedirect($url)->sendHeaders()->sendResponse();exit();
Source: https://habr.com/ru/post/1435461/More articles:Safari on iOS6 handles display: table in different ways - htmlJsoup gets all the links from the page - hyperlinkCannot connect to mongodb database user using php - phpfgets (): Ok on the console, Bad pipe - cIn Objective-C, how do you mark a critical region? - multithreadingHow to check the use of conditional definitions if the application is Firemonkey one? - cross-platformAutomatically copy files without overwriting, but create numbered files instead - vbscriptHow to decode this unicode string representation in Python? - pythonConditionally compile units for FMX or VCL - compiler-constructionCurtose function in the image - statisticsAll Articles