PrestaShop Forums: 301 Redirects from old shopping cart - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


301 Redirects from old shopping cart


301 Redirects from old shopping cart

#1 jreimer

    PrestaShop Newbie

  • 28 Aug 2010
  • Members
  • Pip
  • 11 posts

Posted 01 September 2010 - 11:21 AM

Hi guys,

I am trying to redirect links from my old shopping cart program to my new prestashop install in order to keep my reasonable SEO rankings.

I have tried inserting this into the top of my htaccess file, before the url recreation for my friendly urls, etc:

redirect 301 index.php/AFL-Merchandise/AFL-BBQ-Buddy/flypage.tpl.html http://hisgifts.com.au/afl-merchandise/488-afl-bbq-buddy.html 
redirect 301 index.php/AFL-Merchandise/AFL-Bon-Bons-/-Christmas-Crackers/flypage.tpl.html http://hisgifts.com.au/afl-merchandise/476-afl-bon-bons---christmas-crackers.html
redirect 301 index.php/AFL-Merchandise/AFL-Bumper-Sticker/flypage.tpl.html http://hisgifts.com.au/afl-merchandise/532-afl-bumper-sticker.html


But somehow when I go to a link for one of these products it just take me to my shop home page, not to the new product page as requested. Am I doing this wrong?

Thanks so much for any help you could provide.

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 02 September 2010 - 10:16 AM

Try removing the "index.php" bit, so it's just
redirect 301 /AFL-Merchandise/AFL-BBQ-Buddy/flypage.tpl.html http://hisgifts.com....-bbq-buddy.html

or do
redirect 301 /index.php/AFL-Merchandise/AFL-BBQ-Buddy/flypage.tpl.html http://hisgifts.com....-bbq-buddy.html

If it's still broken, try posting everything in your.htaccess file so we can see if something is conflicting.

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 03 September 2010 - 01:35 AM

Fantastic, that did it!! It just needed the forward slash before it. Thanks so much!!!!

I can't believe something that had me tearing my hair out over for so long was such a simple fix. Again, many thanks!

Joshua





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users