karlb00 Posted December 13, 2013 Share Posted December 13, 2013 Hi All, I hope someone can help me with what should be a simple problem. I'm no coder but know enough to get a simple redirect to work. Unfortunately this one is driving me bonkers and I'm about to throw the laptop out the window! I'm trying to place a simple redirect to a holding page within the maintenance.tpl under my theme folder. if I type the subdomain I've setup straight into a browser it works just fine but if I try to add it to the maintenance.tpl it just won't work. I've got to the point where I've removed nearly everything from the file other than the following - <head> <meta HTTP-EQUIV=“REFRESH” content+”0; url=http://www.ezipets.co.uk/comingsoon”> </head> Ive tried with and without the index.html on the end, I've tried clearing all my caches both in the browsers and within Prestashop, I've cleared smarty and forced compilation but nothing is working. Please help before I throw myself from the window. Thanks. Karl. Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2013 Share Posted December 13, 2013 maybe this post will help you http://www.prestashop.com/forums/topic/142184-redirect-to-custom-maintenance-page/ Link to comment Share on other sites More sharing options...
karlb00 Posted December 13, 2013 Author Share Posted December 13, 2013 Thanks El, I did see that post and thought it sounded similar. Unfortunately I've tried everything on that post but with no success. Thanks for the speedy response. Karl. Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2013 Share Posted December 13, 2013 maybe just change the controller to do a redirect? look at Tools::redirect function. you can scan your base shop code for usage... the alternative would be to use .htaccess redirect Link to comment Share on other sites More sharing options...
karlb00 Posted December 13, 2013 Author Share Posted December 13, 2013 Sorry, you lost me! Lol. I'll need to do some homework as I've no idea what either the tools redirect or the .htaccess does. Thanks. Karl. Link to comment Share on other sites More sharing options...
El Patron Posted December 13, 2013 Share Posted December 13, 2013 On 12/13/2013 at 2:51 PM, karlb00 said: Sorry, you lost me! Lol. I'll need to do some homework as I've no idea what either the tools redirect or the .htaccess does. Thanks. Karl. yes, learning keeps us young(er)!...let us know how it goes Link to comment Share on other sites More sharing options...
karlb00 Posted December 14, 2013 Author Share Posted December 14, 2013 Ok, so I continued to persevere with trying to get the maintenance.tpl redirection to work. Alas I've had to admit defeat! I have no idea why it doesn't work, it should. The most annoying thing is that it used to work. Obviously when I updated Prestashop it updated the maintenance.tpl and since then it doesn't work even though I added my redirect back in the same way it was previously. I then had the brainwave to add a redirect via the cPanel that my host provides. Unfortunately its a subdomain that im trying to redirect to and all I managed to do was put the redirect into a never ending loop! Arrrgh!!! Nightmare. I then took your advice and did a bit of homework into tools::redirect and .htaccess .htaccess looked to be the easier of the two for someone with little to no experience with coding, so after a little digging I decided to add the following to the .htaccess file in the root - Redirect /index.html http://www.ezipets.co.uk/comingsoon And it worked like a dream! Thanks for your help EL, saved my bacon. Karl Link to comment Share on other sites More sharing options...
El Patron Posted December 15, 2013 Share Posted December 15, 2013 uhm...bacon redirects..can be a pain in the arse. I put one in a module of mine that I sell a lot of...as a request 'new feature', it took me a week...beat me down several times...but now works flawlessly... glad you resolved this...happy selling. 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