nomealternativo Posted March 9, 2013 Share Posted March 9, 2013 (edited) Hi all, I've migrated a virtuemart shop on prestashop 1.5.2 now I would need to customize the .htaccess in order to make some redirect 301 relating to the product pages. I've tried to put the code everywere in the .htaccess but nothing worked, I always get the 404 page. The domain is the same. Anyone has some suggestion? Edited March 9, 2013 by nomealternativo (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted March 9, 2013 Share Posted March 9, 2013 without the redirect code it will be difficult for anyone to help you, i.e. exactly what you are doing. to make your management of the custom .htaccess we have a module you might like http://www.etiendas.co/en/42-prestashop-15-customize-htaccess.html Link to comment Share on other sites More sharing options...
nomealternativo Posted March 9, 2013 Author Share Posted March 9, 2013 Hi elpatron, thank you for the answer. I tryed putting this code: redirect 301 /e-shop?page=shop.product_details&flypage=flypage.tpl&product_id=951&category_id=233 http://www.i-vanity.com/1104-siero-viso-corpo-sangue-di-drago-diet-esthetic-100ml.html and this other: RewriteRule ^e-shop?page=shop.product_details&flypage=flypage.tpl&product_id=951&category_id=233 http://www.i-vanity.com/1104-siero-viso-corpo-sangue-di-drago-diet-esthetic-100ml.html [R=301,L] after this line: # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again but nothing changed. I would like to be able to add some working redirect code by myself on .htaccess via ftp, if there is a way to do it. Do you have any suggestion? Link to comment Share on other sites More sharing options...
El Patron Posted March 9, 2013 Share Posted March 9, 2013 Hi, take a look at this tip: http://www.prestashop.com/forums/topic/2131[spam-filter]tip-15-and-custom-htaccess/ hope that helps.... Link to comment Share on other sites More sharing options...
nomealternativo Posted March 9, 2013 Author Share Posted March 9, 2013 (edited) I saw that post and already tried this too, maybe the redirect line I insert is uncorrect or miss something: how do I need to change the line pasted before in order to make it works? I tried to adapt to this structure but I failed: RewriteEngine On RewriteCond %{HTTP_HOST} !^yoursite.com$ RewriteRule (.*) http://yoursite.com/$1 [R=301,L] Edited March 9, 2013 by nomealternativo (see edit history) Link to comment Share on other sites More sharing options...
nomealternativo Posted March 11, 2013 Author Share Posted March 11, 2013 Hello, I bought your module but I still can't make it works. I insert this line: redirect 301 /e-shop?page=shop.product_details&flypage=flypage.tpl&product_id=951&category_id=233 http://www.i-vanity.com/1104-siero-viso-corpo-sangue-di-drago-diet-esthetic-100ml.html but when I go here: www.i-vanity.com/e-shop?page=shop.product_details&flypage=flypage.tpl&product_id=951&category_id=233 I still get a 404 page? Could you help me? Link to comment Share on other sites More sharing options...
El Patron Posted March 11, 2013 Share Posted March 11, 2013 Hi, Our module simply allows you to manage your apache configuration easier than using FTP with the additional benefit of allowing manual regeneration of the native PrestaShop .htaccess. I suggest that rather than using the PrestaShop forum you should post your question on this forum: http://www.webmasterworld.com/apache/ Here you will find expert advice on apache rewrite. Kind regards, Fred Link to comment Share on other sites More sharing options...
nomealternativo Posted March 11, 2013 Author Share Posted March 11, 2013 Thanks for your answer, but the code I insert works on every .htaccess exept this one (on prestashop 1.5, or at least this installation of Perstashop 1.5) that's why I'm asking on the prestashop 1.5 forum. When I first ask an help explaining my problem, you suggest to install your module, now I just would need some assistance to use it propertly. Link to comment Share on other sites More sharing options...
nomealternativo Posted March 14, 2013 Author Share Posted March 14, 2013 No reply? Link to comment Share on other sites More sharing options...
robbie007 Posted March 14, 2013 Share Posted March 14, 2013 (edited) We use presta 1.5.2 with multistore. In multistore we have 1 .htaccess file. Does anybody now how to handle with (301) redirects for multiple domains?? Want to have this directed: www.domain.com/index.html to www.domain.com www.domain-abc.com/test.html to www.domain-abc.com/testnew Who can help us?? Edited March 14, 2013 by robbie007 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts