Search the Community
Showing results for tags 'htacces'.
-
Faire des redirections de sous catégories via htaccess
Gavimse posted a topic in Discussion générale
Bonjour à tous, Je souhaite faire des redirections en masse dans mon fichier htaccess. Toutes les URLs dans https://www.monsite/route/ à rediriger vers https://www.monsite.com/. Je pourrais le faire une par une mais ça me prendrait trop longtemps, je sais que je peux utiliser RewriteCond mais je galère, voici mon code actuel : RewriteCond %{REQUEST_URI} ^/route.* RewriteRule ^/route-([0-9]+)([a-z]) https://www.monsite.com/$1$2 [R=301,L] Cela ne fonctionne pas pour le moment, pouvez-vous m'aider?- 13 replies
-
- htacces
- rewritecond
-
(and 1 more)
Tagged with:
-
Hallo ich habe mir das Modul Protect my Shop für 170 euro gekauft. Nun aber bei der Konfiguration sagt er das keine .htacces datei existiert und ich eine erstellen soll. Aber es existiert eine und ich habe die auch schon tausend mal neu generieren lassen von prestashop aber das Modul sagt weiterhin das keine existiert. Was kann ich da nun machen? Auserdem bekomme ich andauernt emails das dieses Modul den google crawl bot blockt wie kann ich das abstelleN?
-
hi guys, My prestashop was transferred to a new host, all was good before the transfer, when it was completed the website was throwing redirect loops. when i spoke to the hosting company they said the htaccess was at fault. I didnt really believe it as it was fine before hand but when i checked it on the ftp yep it was completely empty. So now i can access back office to generate a new one and also cant view the front office. I dont have a back up and the one i do have is from 1.4.9, and im on 1.5.5 so if i use this i get a 500 error. so my question is how can i generate a new one, really need help, the directors are driving me mad. i dont have much htaccess experience so i havent really got a clue Thanks in advanced Paul
-
Ho installato PS seguendo le istruzioni e grazie all'aiuto ricevuto qui sul forum. L'installazione, però, fa sì che il negozio si apra non sull'url MIOSITO.IT ma su MIOSITO.IT/PRESTASHOP. Ho letto alcuni altri post con l'identico problema ma in nessuno è indicata chiaramente la procedura da adottare. Io ho provato a spostare via ftp la directory PRESTASHOP nella root principale, ma in fase di trasferimento mi da continui "errori critici di trasferimento file" e alla fine del trasfert non c'è traccia della directory PRESTASHOP sulla root. Altri hanno suggerito una modifica al file htaccess, ma non trovo l'indicazione sul COME riscriverlo. Ringrazio in anticipo per gli eventuali suggerimenti Effemix
-
Hi, I want to edit my htaccess file, but when i edit it, i cant get on my site and it gives a 500 internal server error. What should i do? Thanks
-
Hi all, I have a working webshop (1.5.6.1) and I force all pages to run under SSL. Now I've added a module, but in order for it to work properly, one page has to run outside https (thus http). Tried to edit the htacces file from the root directory with something like this: Redirect /module/modulename/moduleUrl http://www.mydomain.com/module/modulename/moduleUrl Tried it before and after all the PS htacces stuff, but all I get is messages about redirect loops. If anyone has a solution or a pointer it is greatly appreciated!
-
Hola. Estoy con una tienda Prestashop en la versión 1.5.4.1. No soy experto pero llevo ya algunos proyectos hechos. Tengo un problema que es la primera vez que me ocurre y llevo días tratando de ver por qué es. Cuando pongo las www delante del dominio en la opción Preferencias SEO y URLsDominio de la tienda: Dominio SSL: Me deja de funcionar el login de usuarios. Los que ya estan registrados ponen sus email y su clave y no ocurre nada, quedan en la misma pantalla. Y los usuarios nuevos cuando completan el formulario de registro tampoco ocurre nada, quedan igual en la misma pantalla. Sin las www la tienda funciona perfecta pero yo quiero que se ven las www en la barra de direcciones. A lo mejor es algo sencillo de solucionar y soy yo el que estoy empanao, pero llevo ya una semana y no doy con la solución. He activado y desactivado las URL amigables, he generado nuevos htacces y nada de nada. Ayuda!!!
-
Hi I´ve a subdomain mx.namedomain.com/usa/ with other contents because i ´m using the option "multiples shop" from 1.5. All is fine, working but i want change the name for have more short and easy. And i want rewrite the url for like this mx.namedomain.com/usa/ to www.namedomain.com/usa/ I try a lot of things, but no succes. Someone can put the correct lines. (my last test is like this: RewriteEngine On RewriteCond %{HTTP_HOST} ^http://mx.domainname.com/usa/$ RewriteRule ^$ http://domainname.com/usa/ [L,R=301]) thanks
-
I’m having trouble with the multi-shop function in Prestashop 1.5.3. The main shop works fine – but the front office of the second shop doesn’t. When I call the second shop in a browser it’s the main shop that displays. If I call a preview of a product page from the second shop’s back office – I get a 404 error. I installed PS on a shared Apache server. I have two domains set up with Plesk so that domain01.com is the main domain and domain02.com is an alias pointing to the same site root. I activated the multi-shop function and created a second shop group then a second shop within that new group with a new name, new logo, different theme, etc. The Shops URLs are configured as follows : Groupe : Default Boutique 1 URL principale activé Domaine = domaine01.com Domaine = domaine01.com URI physique : / URI virtuelle : URL finale : domaine01.com Groupe : Seconde Boutique 2 URL principale activé Domaine = domaine02.com Domaine = domaine02.com URI physique : / URI virtuelle : URL finale : domaine02.com The backoffice displays a warning that mod_rewrite is not active on the server, although my hosting company assures me that it is. Simplified URLs are active on the site and work fine. I guess there’s some sort of trouble with the .htacces file, not knowing exactly what I should find there, I’m including it’s contents here: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.domaine01.com.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.domaine02.com.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Please help!!
-
- multi-shop
- mod_rewrite
-
(and 2 more)
Tagged with:
-
Bien, Voilà j'ai un petit problème qui doit être normal mais pas terrible quand on fait des modifications importantes du .htaccess. Celui ci se remet à jour de temps en temps et efface toutes mes lignes ? Je sais qu'il faut mettre les modifs, en dessous de " ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again" mais vu les modifications demandées je ne peux pas. En clair, savez vous comment interdire la mise à jour automatique une bonne fois pour toute du .htaccess ? D'avance merci
- 4 replies
-
- htacces
- mise à jour
-
(and 1 more)
Tagged with:
-
Hello, i would really appreciate if someone could share some ideas from experience or if you've come across something like this. What i want do achive is change the url to some cms pages. been trying to remove the {content} from url for a couple of days but no succes. so i guess htaccess is going to be my choice for this. i basically have the link to cms page domain.com/en/content/1-delivery and i want this url rewritten like domain.com/en/1-delivery (or any other link for that matter, maybe /info-about delivery or /info/about/delivery) that beeing said please don't point me to backend of SEO&URL . that's not what i'm after. in current .htaccess file i have RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule ^delivery$ %{ENV:REWRITEBASE}en/info/delivery [R=301,L] this first one is actually a redirect from domain.com/delivery to domain.com/en/info/delivery - that work fine RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule ^en/delivery$ %{ENV:REWRITEBASE}en/info/delivery [L] but this one, that is supposed to rewrite domain.com/en/info/delivery to domain.com/en/delivery - doesn't work. it breaks into error 404: page not found. this rules are inside the <IfModule mod_rewrite.c> and before # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again i got the RewriteRule . - [E=REWRITEBASE: public_html/] Additional info: version 1.5.5/ i got the pretty urls module that removes the ids from all urls (but i don't think that is a problem) any ideas? thank you.
-
Hola a todos, soy nuevo en prestashop espero puedan ayudarme: Hice una instalación a un cliente y funcionaba bien todo hasta que el cliente le movio creo que las url amigables y canonicals y ahora tiene un redireccionamiento y un error 404, lo quise arreglar desde el backoffice pero no puedo entrar, los datos son correctos, no me marca error pero no pasa de la pantalla de login. intente borrar el archivo htacces pero me marca error 500. Saludos.
- 4 replies
-
- 404
- back office
-
(and 2 more)
Tagged with:
-
Buenas, tengo que hacer esto: Pasar de luxuryspirits.es/it a it.luxuryspirits.es Y así con todos los idiomas que tengo en mi tienda. Supongo que se hace a través del htacces pero estoy algo perdido ya que he probado a hacer una redirección 301 y no me ha salido, o quizás yo la hago mal. RewriteCond %{HTTP_HOST} ^luxuryspirits.es/it [NC] RewriteRule ^(.*)$ http://it.luxuryspirits.es/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^luxuryspirits.es/ar [NC] RewriteRule ^(.*)$ http://ar.luxuryspirits.es/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^luxuryspirits.es/tw [NC] RewriteRule ^(.*)$ http://tw.luxuryspirits.es/$1 [L,R=301] estos son unos ejemplos de esas redirecciones que he intentado. Gracias, espero vuestra respuesta, Saludos.
-
- Cambiar Url
- Redirecciones
-
(and 2 more)
Tagged with:
-
Bonjour à tous, suite à une génération de mon fichier htaccess après avoir cliquez l optimisation et les urls simplifiés, tout en ayant renseigné "SetEnv PHP_VER 5" dans les configurations spécifiques, beaucoup d'images ont disparu pour laisser la place à des liens qui ne donnent rien. Par ex: http://www.bijou-grossiste.fr/fr/grossiste-collier-bois/126-grossiste-bijoux-asiatiques.html Si l'un d'entre vous à la solution, je suis preneur!!!! Merci d avance Anthony (attention je suis amateur, mais quelque peu débrouillard)
- 2 replies
-
- image effacée
- génération
-
(and 3 more)
Tagged with:
-
Bonjour, Avant toute chose je suis avec une version de prestashop 1.1 Voila, mon problème actuel étant qu'après la desactivation d'un produit (car hors stock), je retombe sur une page me disant que le produit est indisponible ( page 404 ) Je voudrais que ces pages soient en redirection 301 automatiquement (sachant que le produit peut-être de nouveau activer si nous recevons de nouvelles quantités de ce même produit). La solution étant donc une redirection automatique dans le htaccess, voici le code que j'ai inséré : # Redirection 301 RewriteCond %{REQUEST_URI} ^(.*)/content/id-cms-mapagecms(.*)$ RewriteRule ^(.*)$ http://www.actuor.com/ [R=301]
- 1 reply
-
- htacces
- redirection 301
-
(and 1 more)
Tagged with:
-
Hi i have a strange problem with the url rewriting. In every page when i watching the console firebug it take me one file with 404 .... GET ?controller=cart&a...2e&_=1351182236802 200 OK exeemple.cz 218 B 176.31.30.134:80 397ms GET page-not-found 404 Not Found exemple.cz 48.3 KB 176.31.30.134:80 This is in every page for exemple home page i dont understand why prestashop call 404 page and after he dont find it ? Also when i change the base url to www.exemple.com i cannot be logged from the front office. How to solve this ?? its realy strenge. Thank you.
-
Yop all. Question qui va vous sembler facile mais pas pour moi. Lorsque l'on rajoute des pages au site web, que ce soit avec des CMS, des nouveaux articles, ou que ce soit en ajoutant des URL vers du HTML, doit on regenerer le fichier htaccess ou ca ne sert a rien. De même, dans ce cas identique d'ajout de page, doit on aussi regenerer un fichier sitemap.xml pour que google les index correctement ? merci
-
Supuestamente para los buscadores es diferente www.misitio.com a http://misitio.com,'>http://misitio.com, por lo que al indexar ambos sitios lo toman como contenido duplicado y penalizan el ranking de la pagina. Para evitar esto, hay que modificar el archivo htaccess para redirigir www.misitio.com a http://misitio.com o viceversa. El problema, es que al abrir el archivo me dice que no lo configure manualmente, asi que hay que añadir las reglas mediante el backoffice. Pero... las reglas se añaden directamente, o necesitan algun formato? [b][size=2]Redirigir [color=#000080]your_site.com[/color] a [color=#076809]www.yoursite.com:[/color][/size][/b] [size=2]RewriteEngine on (sólo si no está ya allí) RewriteCond% {} ^ HTTP_HOST your_site.com RewriteRule ^(.*)$ http://ww[/size]w.yoursite.com / $ 1 [R = 301, L] [size=2][b]Redirigir [color=#000080]www.your_site.com[/color] a [color=#076809]your_site.com:[/color][/b][/size] [size=2]RewriteEngine on (sólo si no está ya allí)[/size] [size=2] RewriteCond% {} ^ HTTP_HOST www.your_site.com $ [NC] RewriteRule ^(.*)$ http://your_site.com/ $ 1 [R = 301, L][/size] Es correcto el codigo? Como se introduciría? Gracias de antemano!