Dharmendra Rao Posted June 15, 2012 Share Posted June 15, 2012 (edited) Hi, I am working a site (i.e. http://www.thegadgetspot.nl). this site works for three languages - English, Dutch and Netherlands Some time ago, it works fine, means when i open site http://www.thegadgetspot.nl it run well. but now it redirect to http://www.thegadgetspot.nl/nl/ or http://www.thegadgetspot.nl/en/ or http://www.thegadgetspot.nl/de/ . But before, when i click any particular language then it redirected to respective url. What can be problem? plz help me. .htaccess content is - # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> # URL rewriting module activation RewriteEngine on RewriteCond %{HTTP_HOST} ^thegadgetspot.nl RewriteRule ^(.*)$ http://www.thegadgetspot.nl/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.thegadgetspot.nl/ [R=301,L] # URL rewriting rules RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms=$2 [QSA,L] RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms_category=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /supplier.php?isolang=$1&id_supplier=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$3&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /category.php?id_category=$2&isolang=$1 [QSA,L] RewriteRule ^en/address$ /address.php?isolang=en [QSA,L] RewriteRule ^en/addresses$ /addresses.php?isolang=en [QSA,L] RewriteRule ^en/authentication$ /authentication.php?isolang=en [QSA,L] RewriteRule ^en/cart$ /cart.php?isolang=en [QSA,L] RewriteRule ^en/contact-us$ /contact-form.php?isolang=en [QSA,L] RewriteRule ^en/discount$ /discount.php?isolang=en [QSA,L] RewriteRule ^en/guest-tracking$ /guest-tracking.php?isolang=en [QSA,L] RewriteRule ^en/order-history$ /history.php?isolang=en [QSA,L] RewriteRule ^en/identity$ /identity.php?isolang=en [QSA,L] RewriteRule ^en/my-account$ /my-account.php?isolang=en [QSA,L] RewriteRule ^en/new-product$ /new-products.php?isolang=en [QSA,L] RewriteRule ^en/order$ /order.php?isolang=en [QSA,L] RewriteRule ^en/order-follow$ /order-follow.php?isolang=en [QSA,L] RewriteRule ^en/quick-order$ /order-opc.php?isolang=en [QSA,L] RewriteRule ^en/order-slip$ /order-slip.php?isolang=en [QSA,L] RewriteRule ^en/password$ /password.php?isolang=en [QSA,L] RewriteRule ^en/price-drop$ /prices-drop.php?isolang=en [QSA,L] RewriteRule ^en/search$ /search.php?isolang=en [QSA,L] RewriteRule ^en/sitemap$ /sitemap.php?isolang=en [QSA,L] RewriteRule ^en/stores$ /stores.php?isolang=en [QSA,L] RewriteRule ^en/supplier$ /supplier.php?isolang=en [QSA,L] RewriteRule ^en/([^?&]*) /$1?isolang=en [QSA,L] RewriteRule ^nl/direccion$ /address.php?isolang=nl [QSA,L] RewriteRule ^nl/adressen$ /addresses.php?isolang=nl [QSA,L] RewriteRule ^nl/autenticacion$ /authentication.php?isolang=nl [QSA,L] RewriteRule ^nl/carro-de-la-compra$ /cart.php?isolang=nl [QSA,L] RewriteRule ^nl/contact-us$ /contact-form.php?isolang=nl [QSA,L] RewriteRule ^nl/kortingen$ /discount.php?isolang=nl [QSA,L] RewriteRule ^nl/guest-tracking$ /guest-tracking.php?isolang=nl [QSA,L] RewriteRule ^nl/bestelgeschiedenis$ /history.php?isolang=nl [QSA,L] RewriteRule ^nl/persoonlijke-gegevens$ /identity.php?isolang=nl [QSA,L] RewriteRule ^nl/uw-account$ /my-account.php?isolang=nl [QSA,L] RewriteRule ^nl/new-product$ /new-products.php?isolang=nl [QSA,L] RewriteRule ^nl/carrito$ /order.php?isolang=nl [QSA,L] RewriteRule ^nl/devolucion-de-productos$ /order-follow.php?isolang=nl [QSA,L] RewriteRule ^nl/quick-order$ /order-opc.php?isolang=nl [QSA,L] RewriteRule ^nl/vales$ /order-slip.php?isolang=nl [QSA,L] RewriteRule ^nl/password$ /password.php?isolang=nl [QSA,L] RewriteRule ^nl/price-drop$ /prices-drop.php?isolang=nl [QSA,L] RewriteRule ^nl/buscar$ /search.php?isolang=nl [QSA,L] RewriteRule ^nl/sitemap$ /sitemap.php?isolang=nl [QSA,L] RewriteRule ^nl/tiendas$ /stores.php?isolang=nl [QSA,L] RewriteRule ^nl/supplier$ /supplier.php?isolang=nl [QSA,L] RewriteRule ^nl/([^?&]*) /$1?isolang=nl [QSA,L] RewriteRule ^de/adressen$ /addresses.php?isolang=de [QSA,L] RewriteRule ^de/contact-us$ /contact-form.php?isolang=de [QSA,L] RewriteRule ^de/Ermabigung$ /discount.php?isolang=de [QSA,L] RewriteRule ^de/guest-tracking$ /guest-tracking.php?isolang=de [QSA,L] RewriteRule ^de/bestellungsverlauf$ /history.php?isolang=de [QSA,L] RewriteRule ^de/personliche-daten$ /identity.php?isolang=de [QSA,L] RewriteRule ^de/bestelgeschiedenis$ /history.php?isolang=de [QSA,L] RewriteRule ^de/Ihr-konto$ /my-account.php?isolang=de [QSA,L] RewriteRule ^de/new-product$ /new-products.php?isolang=de [QSA,L] RewriteRule ^de/quick-order$ /order-opc.php?isolang=de [QSA,L] RewriteRule ^de/password$ /password.php?isolang=de [QSA,L] RewriteRule ^de/price-drop$ /prices-drop.php?isolang=de [QSA,L] RewriteRule ^de/sitemap$ /sitemap.php?isolang=de [QSA,L] RewriteRule ^de/supplier$ /supplier.php?isolang=de [QSA,L] RewriteRule ^de/([^?&]*) /$1?isolang=de [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 /404.php Thanks Edited June 15, 2012 by dharmendrarao (see edit history) Link to comment Share on other sites More sharing options...
sanchit86 Posted September 5, 2012 Share Posted September 5, 2012 Uninstall canonical URL module. Even i faced the same issue. mark it as solved. Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 5, 2012 Share Posted September 5, 2012 Hello Sanchit86, thank you for the solution! I'm happy everything is going well now. Thank you for choosing PrestaShop! Link to comment Share on other sites More sharing options...
Recommended Posts