Joe Germann Posted August 9, 2010 Share Posted August 9, 2010 I am trying to cut over from OScommerce to PrestaShop and am having a .htaccess and redirect 301 problem. I have firendly URL's turned on and generated the .htaccess file via Prestashop. This works just fine however I want to add in my own redirects from my old web site and when I do that I get a hard server failure.Any help would be appreciated.JoeThe file looks like .....# - PS1 - Baseline .htaccess file via PrestaShop# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /presta/img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /presta/img/p/$1-$2.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /presta/img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /presta/product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /presta/product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /presta/category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /presta/product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /presta/product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /presta/category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /presta/cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /presta/supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /presta/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /presta/$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /presta/404.php# - PS1 - Redirects from OSC Categories Redirect 301 /index.php/cPath/475_23 http://www.mynewwebsite.com/9-workbench-accessoriesRedirect 301 /index.php/cPath/106_107 http://www.mynewwebsite.com/11-drawer-parts-cabinetsRedirect 301 /index.php/cPath/106_108 http://www.mynewwebsite.com/12-revolving-shelvesRedirect 301 /index.php/cPath/106_109 http://www.mynewwebsite.com/13-compartment-boxesRedirect 301 /index.php/cPath/106_110 http://www.mynewwebsite.com/14-specialty-storage Link to comment Share on other sites More sharing options...
Recommended Posts