Jump to content

Recommended Posts

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 by nomealternativo (see edit history)
Link to comment
Share on other sites

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

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 by nomealternativo (see edit history)
Link to comment
Share on other sites

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

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

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

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 by robbie007 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...