lunchtime-Prediction Posted October 28, 2023 Share Posted October 28, 2023 (edited) Hi, I have latest version of prestashop and i want to redirect my 1 landing page to another landing page that name is teatime predictions for today. Actually, we have shutdown our 1 campaign that is why we want to redirect all users to another our updated landing page. I have search a lot but could not find the perfect solution. Can anyone help me how to set the redirections. Thank You. Edited October 30, 2023 by lunchtime-Prediction Miss website name that my client want to redirect. (see edit history) Link to comment Share on other sites More sharing options...
gosloto.co.za Posted October 30, 2023 Share Posted October 30, 2023 Redirecting to another URL is very simple but you should have a proper knowledge otherwise you can loose your traffic and ranking. Here is the code that can help you: Go to: modules\ps_customersignin\ps_customersignin.php , after line 76 'my_account_url' => $link->getPageLink('my-account', true), Go to: themes\yourtheme\modules\ps_customersignin\ps_customersignin.tpl change this: <a href="{$my_account_url}" title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}" rel="nofollow" > May be this code can help you. Or You can also try it: { parent::initContent(); $this->addJS(_THEME_JS_DIR_.'index.js'); $this->context->smarty->assign(array('HOOK_HOME' => Hook::exec('displayHome'), 'HOOK_HOME_TAB' => Hook::exec('displayHomeTab'), 'HOOK_HOME_TAB_CONTENT' => Hook::exec('displayHomeTabContent') )); $this->setTemplate(_PS_THEME_DIR_.'index.tpl'); } and replace it with something like this: { parent::initContent(); Tools::redirect('http://newwebsiteurl.com/'); } Link to comment Share on other sites More sharing options...
Olivier CLEMENCE Posted October 30, 2023 Share Posted October 30, 2023 Hi, you could use my module here : https://addons.prestashop.com/en/url-redirects/86239-op-art-easy-redirect-seo-redirect-301-302.html Link to comment Share on other sites More sharing options...
lunchtime-Prediction Posted October 30, 2023 Author Share Posted October 30, 2023 Thank You Olivier CLEMENCE. I will definitely try it. 1 Link to comment Share on other sites More sharing options...
Terasacucarti Posted February 28 Share Posted February 28 Redirects allow you to forward the visitors of a specific URL to another page of your website. In Site Tools, you can add redirects by going to Domain > Redirects. Choose the desired domain, fill in the URL you want to redirect to another and add the URL of the new page destination. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now