Nikpro Posted February 18, 2011 Share Posted February 18, 2011 su htaccess - problemi se si utilizza un altro servizio di hosting per images.help mi capisce.Quando è abilitato il "Friendly URL" immagini da un altro server non viene caricato. Ho bisogno di lavorare "URL friendly" e immagini scaricate da un altro web hosting!Come posso fare?Version prestashop :1.3.6 Le mie azioni: [/ b]1. edit Link.php[/ b] return ($this->allow == 1) ? ('http://www.hostname.ru/wp-content/img'.$ids.(type ? '-'.$type : '').'/'.$name.'.jpg') : ('http://www.hostname.ru/wp-content/img/p/'.$ids.(type ? '-'.$type : '').'.jpg'); 2.Nella la riscrittura degli URL [/ b]3.Generate file . htaccess [/ b]ps: URL rewriting funziona se le immagini sono sullo stesso hosting come il sistema si PrestaShop. se si disattiva la riscrittura degli URL, le immagini vengono caricate da un altro server. Scorciatoie per formare un quadro quando lo si accende la riscrittura degli URL [/ i]http://www.maksimsolnecniy.ru/wp-content/img55553-893-home/ASICS-PATRIOT-3-krossovki-jenskie-v-Habarovske-i-Habarovskom-krae-.jpg immagini di carico / collegamenti a formare un quadro quando è spento la riscrittura degli URL [/ i]http://www.maksimsolnecniy.ru/wp-content/img/p/55553-893-home.jpg esempio come è ora non lavoro [/ b]http://www.sporttimedv.ru/2_asics-- ho provato a risolvere il problema eliminare i file e creare un nuovo (rigenerato) .htaccess Link to comment Share on other sites More sharing options...
disarci Posted February 18, 2011 Share Posted February 18, 2011 Non ho capito nulla di quello che hai scritto!ma se hai risolto (come sembra dal sito) scrivi nel titolo risolto. Link to comment Share on other sites More sharing options...
Nikpro Posted February 19, 2011 Author Share Posted February 19, 2011 Non ho capito nulla di quello che hai scritto!ma se hai risolto (come sembra dal sito) scrivi nel titolo risolto. Ci dispiace, ma io ispolzuyu traduttore di Google per un italiano)Qui, in inglese::on htaccess - problems If you use another hosting service for imageson htaccess - problems If you use another hosting service for images.help me understand.When enabled the "Friendly URL " images from another server is not loaded. I need to work "Friendly URL" and pictures downloaded from another web hosting!How can I do?Version prestashop :1.3.6My actions:1.edite Link.phpreturn ($this->allow == 1) ? ('http://www.hostname.ru/wp-content/img'.$ids.(type ? '-'.$type : '').'/'.$name.'.jpg') : ('http://www.hostname.ru/wp-content/img/p/'.$ids.(type ? '-'.$type : '').'.jpg'); 2.on URL rewriting3.Generate file .htaccessps: URL rewriting works if the images are on the same hosting as the system itself prestashop. if you disable the URL rewriting, the images are loaded from another server.Shortcuts to form a picture when turned on URL rewritinghttp://www.maksimsolnecniy.ru/wp-content/img55553-893-home/ASICS-PATRIOT-3-krossovki-jenskie-v-Habarovske-i-Habarovskom-krae-.jpg load images/ Shortcuts to form a picture when turned off URL rewritinghttp://www.maksimsolnecniy.ru/wp-content/img/p/55553-893-home.jpg example as it is now not workinghttp://www.sporttimedv.ru/2_asics--I tried to solve the problem delete files and create a new (regenerate) .htaccess Link to comment Share on other sites More sharing options...
shop365 Posted February 19, 2011 Share Posted February 19, 2011 Come mai non tieni le foto sullo stesso server, almeno cosi risolvi il problema? Per caricare velocemente le pagine?Ciao Link to comment Share on other sites More sharing options...
Nikpro Posted February 19, 2011 Author Share Posted February 19, 2011 Come mai non tieni le foto sullo stesso server, almeno cosi risolvi il problema? Per caricare velocemente le pagine?Ciao Poiché il server dove sono memorizzate le immagini - è gratuito.Ho alcuni negozi.Il mio servizio non è in grado di ricevere i visitatori kollichesvo di grandi dimensioni......Spostarsi in un'altra ospitare questo costo aggiuntivo Link to comment Share on other sites More sharing options...
shop365 Posted February 19, 2011 Share Posted February 19, 2011 Hello,Delete by your .htaccess file this:RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [QSA,L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,L,E]I have tested in the my website and this work.Bye Link to comment Share on other sites More sharing options...
Nikpro Posted February 19, 2011 Author Share Posted February 19, 2011 Hello,Delete by your .htaccess file this:RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [QSA,L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,L,E]I have tested in the my website and this work.Bye Unfortunately forwarding the pictures works again...does not working..I removed these lines RewriteRule.No forwarding images is Link to comment Share on other sites More sharing options...
pesto Posted February 24, 2011 Share Posted February 24, 2011 Non ho capito nulla di quello che hai scritto!ma se hai risolto (come sembra dal sito) scrivi nel titolo risolto. ciao disarci come stai?senti sto usando vista, ho istallato la ver 1.3.6 creo .htaccess inblocco note ma nn me lo vede con icona di blocco note perciò l'estensione non c'é ed ok, abilito urlsemplice ma poi in generatori non mi compare il pulsante per creare il file..ho copiato anche dentro quella pappardella che il generatore fa ma lo stesso nada..i permessi credo siano a posto..che strano.. 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