Ste00 Posted January 23, 2013 Share Posted January 23, 2013 Hi, We have recently migrated from a .asp cart to prestashop and therefore need to do quite a few redirects from the old pages. The problem is prestashop seems to fight the re-direct and send us to the prestashop 404 page. How do we add 301 / 302 re-directs to prestashop as we have seen that we shouldnt manually edit the .htaccess file? At the moment our buisness is suffering as the re-directs are not inplace, customers hit the 404 and exit the site instead of reading it or using the search button... Link to comment Share on other sites More sharing options...
Ste00 Posted January 23, 2013 Author Share Posted January 23, 2013 (edited) Oh also forgot, A example would be http://www.petremedies.co.uk/checkout.asp (hits prestashop 404) http://petremedies.co.uk/checkout.asp (directs correctly to the index page) Edited January 23, 2013 by Ste00 (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 23, 2013 Share Posted January 23, 2013 not sure about the exact format of the redirects, but we have a nice tool for managing your .htaccess here: http://www.prestashop.com/forums/topic/213570-module-prestashop-15-customize-htaccess/ Link to comment Share on other sites More sharing options...
Ste00 Posted January 24, 2013 Author Share Posted January 24, 2013 Hi can you get intouch with me as i am trying to buy that module and its refusing the transaction (on callback it says the postcode is blank but there is no postcode field on the site...) and there is no contact phone number on your website. Link to comment Share on other sites More sharing options...
El Patron Posted January 24, 2013 Share Posted January 24, 2013 Hi can you get intouch with me as i am trying to buy that module and its refusing the transaction (on callback it says the postcode is blank but there is no postcode field on the site...) and there is no contact phone number on your website. Proves my point on these forums, don't fix it if it isn't broke...had been playing around with countries to include vat and turned off zip code just to make things easier...look where that got me. Thanks again for bringing this to my attention. Link to comment Share on other sites More sharing options...
Ste00 Posted January 24, 2013 Author Share Posted January 24, 2013 No problem, Module is working for me now. Just need to figure out the correct re-direct code that works with prestashop as i can get it working on non www but not for both non and www requests... www requests always end up at the 404 page... Tried this: RewriteCond %{HTTP_HOST} ^petremedies\.co\.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.petremedies\.co\.uk$ RewriteRule ^checkout\.asp$ "http\:\/\/www\.petremedies\.co\.uk\/" [R=301,L] Which unfortunately only re-directs on the petremedies.co.uk/checkout.asp and 404's if you try to go to www.petremedies.co.uk/checkout.asp Link to comment Share on other sites More sharing options...
Recommended Posts