Cuketa Posted March 29, 2012 Share Posted March 29, 2012 Dobrý den, mám problém s CMS odkazy v patičce. Používám Prestashop 1.4.0.17 a mám zapnutou funkci přátelská URL. Po prvotním načtení stránek a kliknutí na jeden z CMS odkazů v patičce, např. Obchodní podmínky tak se tato stránka načte korektně (.../content/3-obchodni-podminky). Ale po druhém kliknutí na jiný nebo stejný CMS odkaz se mi zobrazí chybová hláška "Stránka není dostupná" a adresa vypadá následovně (.../content/cms.php?id_cms=3). Můžete mi někdo prosím poradit jak se tohoto problému zbavit? Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted March 29, 2012 Share Posted March 29, 2012 Upgraduj na 1.4.7 a dej vědět... Link to comment Share on other sites More sharing options...
Cuketa Posted March 30, 2012 Author Share Posted March 30, 2012 Shop jsem updatoval, ale bohužel se to moc nezlepšilo. Při každém druhém kliknutí se stránka nezobrazí. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted March 30, 2012 Share Posted March 30, 2012 Vypni/zapni canocial url, vypni zapni/apache multiview, prokombinuj to. Link to comment Share on other sites More sharing options...
Aramon Posted April 2, 2012 Share Posted April 2, 2012 Případně zkuz do .htaccess přidat RewriteBase / hned za příkaz, který rewrite mode zapíná Link to comment Share on other sites More sharing options...
Jiri Urban Posted May 28, 2012 Share Posted May 28, 2012 (edited) Ahoj mám úplně stejný problém, přišel jste na to, jak to vyřešit? Problém vyřešen. Byla chybka v header.tpl. Edited May 29, 2012 by Jiri Urban (see edit history) Link to comment Share on other sites More sharing options...
pinokino Posted February 13, 2013 Share Posted February 13, 2013 Ahoj... Administrace mi hlásí chybu a červeně svítí hlášení URL rewriting... kliknu na to a dostanu se do Administrace Nástroje Generátory. Pak aktualizuju htaccess - zaškrtnuto mám: optimalizace, přátelské URL i Deaktivovat apache multiviews - ale zkoušel jsem to i bez té deaktivace... Hlášení pořád svítí červeně... Můžete mi prosím poradit, co mám dělat, aby se URL přepsalo? Díky Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted February 13, 2013 Share Posted February 13, 2013 A vytvořil se ti ten htaccess? Link to comment Share on other sites More sharing options...
pinokino Posted February 13, 2013 Share Posted February 13, 2013 Jestli je to správně, je ten soubor v adresáři public_html. Ten E-shop už nějakou dobu jede... Objevilo se to po nějaké změně, ale nevím po jaké... Mám verzi 147... kdyžtak... díky Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted February 13, 2013 Share Posted February 13, 2013 Ty vole, to jsou zase informace. Jmenuje se ten soubor .htaccess nebo htaccess.txt ??? Link to comment Share on other sites More sharing options...
pinokino Posted February 13, 2013 Share Posted February 13, 2013 (edited) .htaccess Edited February 13, 2013 by pinokino (see edit history) Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted February 14, 2013 Share Posted February 14, 2013 A přátelské URL teda máš zapnuté? Hoď sem výpis toho htaccessu a zkontroluj přes php.info, jestli ti běží na serveru mod_rewrite. Link to comment Share on other sites More sharing options...
pinokino Posted February 14, 2013 Share Posted February 14, 2013 Ahoj... Přátelské URL mám zapnuté... Výpis je tady... Z hostingu mi psali, že u nich je vše v pořádku... ale přes php.info to zkontrolovat neumím... Díky <IfModule mod_rewrite.c> # Disable Multiviews Options -Multiviews # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /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$ /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$ /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$ /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$ /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$ /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$ /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$ /img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg [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-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$2&isolang=$1&noredirect=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 ^([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 ^[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-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$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 ^en/page-not-found$ /404.php?isolang=en [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/best-sales$ /best-sales.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/manufacturers$ /manufacturer.php?isolang=en [QSA,L] RewriteRule ^en/blog/all-post.html$ /modules/plblog/frontent/all-post.php?isolang=en [QSA,L] RewriteRule ^en/my-account$ /my-account.php?isolang=en [QSA,L] RewriteRule ^en/new-products$ /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-recovery$ /password.php?isolang=en [QSA,L] RewriteRule ^en/prices-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$ /en/ [QSA,L] RewriteRule ^en/([^?&]*)$ /$1?isolang=en [QSA,L] RewriteRule ^cs/stranka-nenalezena-404$ /404.php?isolang=cs [QSA,L] RewriteRule ^cs/adresa$ /address.php?isolang=cs [QSA,L] RewriteRule ^cs/adresy$ /addresses.php?isolang=cs [QSA,L] RewriteRule ^cs/autentifikace$ /authentication.php?isolang=cs [QSA,L] RewriteRule ^cs/nejprodavanejsi-produkty$ /best-sales.php?isolang=cs [QSA,L] RewriteRule ^cs/kosik$ /cart.php?isolang=cs [QSA,L] RewriteRule ^cs/kontakt$ /contact-form.php?isolang=cs [QSA,L] RewriteRule ^cs/slevy$ /discount.php?isolang=cs [QSA,L] RewriteRule ^cs/sledovani-pro-navsteniky$ /guest-tracking.php?isolang=cs [QSA,L] RewriteRule ^cs/historie-objednavek$ /history.php?isolang=cs [QSA,L] RewriteRule ^cs/identita$ /identity.php?isolang=cs [QSA,L] RewriteRule ^cs/vyrobci$ /manufacturer.php?isolang=cs [QSA,L] RewriteRule ^cs/blog/all-post.html$ /modules/plblog/frontent/all-post.php?isolang=cs [QSA,L] RewriteRule ^cs/ucet$ /my-account.php?isolang=cs [QSA,L] RewriteRule ^cs/nove-produkty$ /new-products.php?isolang=cs [QSA,L] RewriteRule ^cs/objednavka$ /order.php?isolang=cs [QSA,L] RewriteRule ^cs/sledovani-objednavky$ /order-follow.php?isolang=cs [QSA,L] RewriteRule ^cs/rychla-objednavka$ /order-opc.php?isolang=cs [QSA,L] RewriteRule ^cs/dodaci-list$ /order-slip.php?isolang=cs [QSA,L] RewriteRule ^cs/obnoveni-hesla$ /password.php?isolang=cs [QSA,L] RewriteRule ^cs/zlevnene-produkty$ /prices-drop.php?isolang=cs [QSA,L] RewriteRule ^cs/vyhledavani$ /search.php?isolang=cs [QSA,L] RewriteRule ^cs/mapa-stranek$ /sitemap.php?isolang=cs [QSA,L] RewriteRule ^cs/kamenne-obchody$ /stores.php?isolang=cs [QSA,L] RewriteRule ^cs/dodavatele$ /supplier.php?isolang=cs [QSA,L] RewriteRule ^cs$ /cs/ [QSA,L] RewriteRule ^cs/([^?&]*)$ /$1?isolang=cs [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 /404.php <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted February 15, 2013 Share Posted February 15, 2013 Pošli mi kdyžtak do PM admin a FTP login... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now