Zrobiłem kopie (sklep + baza danych ) sklepu który działa w internecie i umieściłem na serwerze lokalnym WAMP, aby mieć środowisko do testów. Problem polega na tym że zamiast wejść na frontpage strony
localhost/sklepxyz/ to cięgle przekierowuje mnie na domenę sklepu
sklepxyz.pl . Backpagedziałą prawidłowo
http://localhost/sklepxyz/backoffice - zmieniłem w zakładce SEO katalog sklepu na
/sklepxyz/ i domene na localhost
- zmieniłem też w pliku settings.ini.php
- wyczyściłem cache i compile
- wygenerowałem nowy htaccess
Co ciekawe w firefox - backoffice działa a fronpage przekierowuje na stronę sklepxyz.pl a w IE - na frontpage, tylko pojawia się błąd 404 :
localhost/sklepxyz/pl/page-not-found Całość przy włączonych przyjaznych linkach i wygenerowanemu htacces właśnie nie działa , ale jak wyłączę przyjazne linki to jest ok.
Plik htaccess, może to z nim coś nie tak jest:
# URL rewriting rules
RewriteRule ^api/?(.*)$ /sklepxyz/webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1-$2$3.jpg [L]
RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1-$2.jpg [L]
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$1$2.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$2/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$2/$3/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/c/$1$2.jpg [L]
RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /sklepxyz/img/c/$1.jpg [L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /sklepxyz/product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /sklepxyz/category.php?id_category=$1 [QSA,L]
RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /sklepxyz/product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /sklepxyz/supplier.php?id_supplier=$1 [QSA,L]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /sklepxyz/manufacturer.php?id_manufacturer=$1 [QSA,L]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /sklepxyz/cms.php?id_cms=$1 [QSA,L]
RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /sklepxyz/cms.php?id_cms_category=$1 [QSA,L]
RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /sklepxyz/product.php?id_product=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /sklepxyz/product.php?id_product=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /sklepxyz/category.php?id_category=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /sklepxyz/cms.php?isolang=$1&id_cms=$2 [QSA,L]
RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /sklepxyz/cms.php?isolang=$1&id_cms_category=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /sklepxyz/supplier.php?isolang=$1&id_supplier=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /sklepxyz/manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /sklepxyz/img/c/$1$2.jpg [L]
RewriteRule ^en/page-not-found$ /sklepxyz/404.php?isolang=en [QSA,L]
RewriteRule ^en/address$ /sklepxyz/address.php?isolang=en [QSA,L]
RewriteRule ^en/addresses$ /sklepxyz/addresses.php?isolang=en [QSA,L]
RewriteRule ^en/authentication$ /sklepxyz/authentication.php?isolang=en [QSA,L]
RewriteRule ^en/best-sales$ /sklepxyz/best-sales.php?isolang=en [QSA,L]
RewriteRule ^en/cart$ /sklepxyz/cart.php?isolang=en [QSA,L]
RewriteRule ^en/contact-us$ /sklepxyz/contact-form.php?isolang=en [QSA,L]
RewriteRule ^en/discount$ /sklepxyz/discount.php?isolang=en [QSA,L]
RewriteRule ^en/guest-tracking$ /sklepxyz/guest-tracking.php?isolang=en [QSA,L]
RewriteRule ^en/order-history$ /sklepxyz/history.php?isolang=en [QSA,L]
RewriteRule ^en/identity$ /sklepxyz/identity.php?isolang=en [QSA,L]
RewriteRule ^en/home$ /sklepxyz/index.php?isolang=en [QSA,L]
RewriteRule ^en/Designers$ /sklepxyz/manufacturer.php?isolang=en [QSA,L]
RewriteRule ^en/my-account$ /sklepxyz/my-account.php?isolang=en [QSA,L]
RewriteRule ^en/new-products$ /sklepxyz/new-products.php?isolang=en [QSA,L]
RewriteRule ^en/order$ /sklepxyz/order.php?isolang=en [QSA,L]
RewriteRule ^en/order-follow$ /sklepxyz/order-follow.php?isolang=en [QSA,L]
RewriteRule ^en/quick-order$ /sklepxyz/order-opc.php?isolang=en [QSA,L]
RewriteRule ^en/order-slip$ /sklepxyz/order-slip.php?isolang=en [QSA,L]
RewriteRule ^en/password-recovery$ /sklepxyz/password.php?isolang=en [QSA,L]
RewriteRule ^en/sale$ /sklepxyz/prices-drop.php?isolang=en [QSA,L]
RewriteRule ^en/search$ /sklepxyz/search.php?isolang=en [QSA,L]
RewriteRule ^en/sitemap$ /sklepxyz/sitemap.php?isolang=en [QSA,L]
RewriteRule ^en/stores$ /sklepxyz/stores.php?isolang=en [QSA,L]
RewriteRule ^en/supplier$ /sklepxyz/supplier.php?isolang=en [QSA,L]
RewriteRule ^en$ /sklepxyz/en/ [QSA,L]
RewriteRule ^en/([^?&]*)$ /sklepxyz/$1?isolang=en [QSA,L]
RewriteRule ^pl/page-not-found$ /sklepxyz/404.php?isolang=pl [QSA,L]
RewriteRule ^pl/address$ /sklepxyz/address.php?isolang=pl [QSA,L]
RewriteRule ^pl/addresses$ /sklepxyz/addresses.php?isolang=pl [QSA,L]
RewriteRule ^pl/authentication$ /sklepxyz/authentication.php?isolang=pl [QSA,L]
RewriteRule ^pl/best-sales$ /sklepxyz/best-sales.php?isolang=pl [QSA,L]
RewriteRule ^pl/cart$ /sklepxyz/cart.php?isolang=pl [QSA,L]
RewriteRule ^pl/kontakt$ /sklepxyz/contact-form.php?isolang=pl [QSA,L]
RewriteRule ^pl/discount$ /sklepxyz/discount.php?isolang=pl [QSA,L]
RewriteRule ^pl/guest-tracking$ /sklepxyz/guest-tracking.php?isolang=pl [QSA,L]
RewriteRule ^pl/order-history$ /sklepxyz/history.php?isolang=pl [QSA,L]
RewriteRule ^pl/identity$ /sklepxyz/identity.php?isolang=pl [QSA,L]
RewriteRule ^pl/home$ /sklepxyz/index.php?isolang=pl [QSA,L]
RewriteRule ^pl/marki$ /sklepxyz/manufacturer.php?isolang=pl [QSA,L]
RewriteRule ^pl/my-account$ /sklepxyz/my-account.php?isolang=pl [QSA,L]
RewriteRule ^pl/new-products$ /sklepxyz/new-products.php?isolang=pl [QSA,L]
RewriteRule ^pl/order$ /sklepxyz/order.php?isolang=pl [QSA,L]
RewriteRule ^pl/order-follow$ /sklepxyz/order-follow.php?isolang=pl [QSA,L]
RewriteRule ^pl/quick-order$ /sklepxyz/order-opc.php?isolang=pl [QSA,L]
RewriteRule ^pl/order-slip$ /sklepxyz/order-slip.php?isolang=pl [QSA,L]
RewriteRule ^pl/password-recovery$ /sklepxyz/password.php?isolang=pl [QSA,L]
RewriteRule ^pl/prices-drop$ /sklepxyz/prices-drop.php?isolang=pl [QSA,L]
RewriteRule ^pl/search$ /sklepxyz/search.php?isolang=pl [QSA,L]
RewriteRule ^pl/sitemap$ /sklepxyz/sitemap.php?isolang=pl [QSA,L]
RewriteRule ^pl/stores$ /sklepxyz/stores.php?isolang=pl [QSA,L]
RewriteRule ^pl/supplier$ /sklepxyz/supplier.php?isolang=pl [QSA,L]
RewriteRule ^pl$ /sklepxyz/pl/ [QSA,L]
RewriteRule ^pl/([^?&]*)$ /sklepxyz/$1?isolang=pl [QSA,L]
</IfModule> prestashop: 1.4.4.1