dostoyevski Posted December 12, 2021 Share Posted December 12, 2021 hola, queria saber si hay alguna manera de configurar las urls para que no haya duplicidades con las www y las no-www en prestashop. ¿se hace mediante el archivo .htaccess como en las web normales? y si es asi ¿donde esta el archivo .htaccess? un saludo. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted December 12, 2021 Share Posted December 12, 2021 Hola el . htaccess ubicado en su carpeta raíz donde se instala su PrestaShop https://www.prestashop.com/forums/topic/170582-apache-config-how-to-prevent-duplicate-content-htaccess-serveralias/ Link to comment Share on other sites More sharing options...
dostoyevski Posted December 16, 2021 Author Share Posted December 16, 2021 y sabeis si esta programado para evitar duplicicades con rutas www y no.www? este es el contenido de mi htaccess: # ~~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> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: xn--tiendadesueos-skb.com RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> <FilesMatch "\.pdf$"> Header set Content-Disposition "Attachment" Header set X-Content-Type-Options "nosniff" </FilesMatch> </IfModule> <Files composer.lock> # Apache 2.2 <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> # Apache 2.4 <IfModule mod_authz_core.c> Require all denied </IfModule> </Files> #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 un saludo. 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