ivanson7 Posted April 18, 2020 Share Posted April 18, 2020 (edited) Hola a todos, espero me puedan ayudar con el聽problema ya que estoy intentando todas las opciones que veo y no logro solucionarlo. He instalado prestashop 1.7.6.4 y funciona correctamente, el problema se presenta cuando activo聽las URL amigables. Si las desactivo de nuevo el sitio funciona correctamente. 聽 Error Not Found The requested URL was not found on this server. Apache/2.4.29 (Ubuntu) Server at v2.test1234.es Port 80 Apache El mod_rewrite esta habilitado.聽 聽 聽 聽 聽 <Directory "/var/www/v2.test1234.es"> 聽 聽 聽 聽 聽 聽 聽 聽 聽 Options Indexes FollowSymLinks 聽 聽 聽 聽 聽 聽 聽 聽 聽 AllowOverride All 聽 聽 聽 聽 聽 聽 聽 聽 聽 Require all granted 聽 聽 聽 聽 聽 </Directory> Prestashop config 聽 Cache Cache desactivado, solo tengo activado Optimizaci贸n apache y Caracter铆sticas opcionales聽(tampoco funciona desactivando) 聽 .htaccess Cada cambio probe de borrarlo y generarlo nuevamente 聽 1 # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again 聽 2 # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution 聽 3 # http://www.prestashop.com - http://www.prestashop.com/forums 聽 4聽 聽 5 <IfModule mod_rewrite.c> 聽 6 <IfModule mod_env.c> 聽 7 SetEnv HTTP_MOD_REWRITE On 聽 8 </IfModule> 聽 9聽 聽10 RewriteEngine on 聽11聽 聽12聽 聽13 #Domain: v2.test1234.es 聽14 RewriteRule . - [E=REWRITEBASE:/] 聽15 RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] 聽16聽 聽17 # Images 聽18 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽19 RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] 聽20 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽21 RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] 聽22 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽23 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] 聽24 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽25 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] 聽26 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽27 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] 聽28 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽29 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] 聽30 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽31 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] 聽32 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽33 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] 聽34 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽35 RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] 聽36 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 聽37 RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] 聽38 # AlphaImageLoader for IE and fancybox 聽39 RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] 聽40聽 聽41 # Dispatcher 聽42 RewriteCond %{REQUEST_FILENAME} -s [OR] 聽43 RewriteCond %{REQUEST_FILENAME} -l [OR] 聽44 RewriteCond %{REQUEST_FILENAME} -d 聽45 RewriteRule ^.*$ - [NC,L] 聽46 RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] 聽47 </IfModule> 聽48聽 聽49 AddType application/vnd.ms-fontobject .eot 聽50 AddType font/ttf .ttf 聽51 AddType font/otf .otf 聽52 AddType application/font-woff .woff 聽53 AddType font/woff2 .woff2 聽54 <IfModule mod_headers.c> 聽55 聽 聽 聽 聽 <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> 聽56 聽 聽 聽 聽 聽 聽 聽 聽 Header set Access-Control-Allow-Origin "*" 聽57 聽 聽 聽 聽 </FilesMatch> 聽58 </IfModule> 聽59聽 聽60 <IfModule mod_expires.c> 聽61 聽 聽 聽 聽 ExpiresActive On 聽62 聽 聽 聽 聽 ExpiresByType image/gif "access plus 1 month" 聽63 聽 聽 聽 聽 ExpiresByType image/jpeg "access plus 1 month" 聽64 聽 聽 聽 聽 ExpiresByType image/png "access plus 1 month" 聽65 聽 聽 聽 聽 ExpiresByType text/css "access plus 1 week" 聽66 聽 聽 聽 聽 ExpiresByType text/javascript "access plus 1 week" 聽67 聽 聽 聽 聽 ExpiresByType application/javascript "access plus 1 week" 聽68 聽 聽 聽 聽 ExpiresByType application/x-javascript "access plus 1 week" 聽69 聽 聽 聽 聽 ExpiresByType image/x-icon "access plus 1 year" 聽70 聽 聽 聽 聽 ExpiresByType image/svg+xml "access plus 1 year" 聽71 聽 聽 聽 聽 ExpiresByType image/vnd.microsoft.icon "access plus 1 year" 聽72 聽 聽 聽 聽 ExpiresByType application/font-woff "access plus 1 year" 聽73 聽 聽 聽 聽 ExpiresByType application/x-font-woff "access plus 1 year" 聽74 聽 聽 聽 聽 ExpiresByType font/woff2 "access plus 1 year" 聽75 聽 聽 聽 聽 ExpiresByType application/vnd.ms-fontobject "access plus 1 year" 聽76 聽 聽 聽 聽 ExpiresByType font/opentype "access plus 1 year" 聽77 聽 聽 聽 聽 ExpiresByType font/ttf "access plus 1 year" 聽78 聽 聽 聽 聽 ExpiresByType font/otf "access plus 1 year" 聽79 聽 聽 聽 聽 ExpiresByType application/x-font-ttf "access plus 1 year" 聽80 聽 聽 聽 聽 ExpiresByType application/x-font-otf "access plus 1 year" 聽81 </IfModule> 聽82聽 聽83 <IfModule mod_headers.c> 聽84 聽 聽 Header unset Etag 聽85 </IfModule> 聽86 FileETag none 聽87 <IfModule mod_deflate.c> 聽88 聽 聽 <IfModule mod_filter.c> 聽89 聽 聽 聽 聽 AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype image/svg+xml 聽90 聽 聽 </IfModule> 聽91 </IfModule> 聽92聽 聽93 #If rewrite mod isn't enabled 聽94 ErrorDocument 404 /index.php?controller=404 聽95聽 聽96 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again 聽97聽 ~聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 Se les ocurre algo? saludos 聽 Ivan Edited April 23, 2020 by ivanson7 (see edit history) Link to comment Share on other sites More sharing options...
lobogris2691 Posted April 18, 2020 Share Posted April 18, 2020 Tengo exactamente el mismo problema!馃槩 Link to comment Share on other sites More sharing options...
jaloise Posted April 19, 2020 Share Posted April 19, 2020 Buenas. Estamos seguros que el rewrite del servidor esta activo? Podrias poner un phpinfo() para ver las variables del servidor. Link to comment Share on other sites More sharing options...
ivanson7 Posted April 19, 2020 Author Share Posted April 19, 2020 (edited) 6 hours ago, jaloise said: Buenas. Estamos seguros que el rewrite del servidor esta activo? Podrias poner un phpinfo() para ver las variables del servidor. Buenas,聽 Si busco en el phpinfo rewrite me sale en 3 partes 聽 Loaded Modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_auth_digest mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php7 mod_proxy mod_qos mod_reqtimeout mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_status 聽 standard Directive聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Local聽 聽 聽 聽 聽 聽Value url_rewriter.hosts聽 聽 聽 no value聽 聽 聽 no value url_rewriter.tags聽 聽 聽 聽 form=聽 聽 聽 聽 聽 聽 form= 聽 Modulos Apache ubuntu@local4 聽/ $聽sudo apache2ctl -M Loaded Modules: 聽core_module (static) 聽so_module (static) 聽watchdog_module (static) 聽http_module (static) 聽log_config_module (static) 聽logio_module (static) 聽version_module (static) 聽unixd_module (static) 聽access_compat_module (shared) 聽alias_module (shared) 聽auth_basic_module (shared) 聽auth_digest_module (shared) 聽authn_core_module (shared) 聽authn_file_module (shared) 聽authz_core_module (shared) 聽authz_host_module (shared) 聽authz_user_module (shared) 聽autoindex_module (shared) 聽deflate_module (shared) 聽dir_module (shared) 聽env_module (shared) 聽filter_module (shared) 聽mime_module (shared) 聽mpm_prefork_module (shared) 聽negotiation_module (shared) 聽php7_module (shared) 聽proxy_module (shared) 聽qos_module (shared) 聽reqtimeout_module (shared) 聽rewrite_module (shared) 聽setenvif_module (shared) 聽socache_shmcb_module (shared) 聽ssl_module (shared) 聽status_module (shared) 聽 聽 Tendria que aparecer en algun lugar mas? 聽 saludos 聽 Ivan 聽 Edited April 19, 2020 by ivanson7 (see edit history) Link to comment Share on other sites More sharing options...
juanrojas Posted April 19, 2020 Share Posted April 19, 2020 6 hours ago, jaloise said: Buenas. Estamos seguros que el rewrite del servidor esta activo? Podrias poner un phpinfo() para ver las variables del servidor. cual es el parametro que se deberia de revisar? porque yo lo hice y lo unico que me aparece en la busqueda con ese termino es聽 聽 Link to comment Share on other sites More sharing options...
jaloise Posted April 20, 2020 Share Posted April 20, 2020 On 4/19/2020 at 3:56 AM, ivanson7 said: Buenas,聽 Si busco en el phpinfo rewrite me sale en 3 partes 聽 Loaded Modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_auth_digest mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php7 mod_proxy mod_qos mod_reqtimeout mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_status 聽 standard Directive聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Local聽 聽 聽 聽 聽 聽Value url_rewriter.hosts聽 聽 聽 no value聽 聽 聽 no value url_rewriter.tags聽 聽 聽 聽 form=聽 聽 聽 聽 聽 聽 form= 聽 Modulos Apache ubuntu@local4 聽/ $聽sudo apache2ctl -M Loaded Modules: 聽core_module (static) 聽so_module (static) 聽watchdog_module (static) 聽http_module (static) 聽log_config_module (static) 聽logio_module (static) 聽version_module (static) 聽unixd_module (static) 聽access_compat_module (shared) 聽alias_module (shared) 聽auth_basic_module (shared) 聽auth_digest_module (shared) 聽authn_core_module (shared) 聽authn_file_module (shared) 聽authz_core_module (shared) 聽authz_host_module (shared) 聽authz_user_module (shared) 聽autoindex_module (shared) 聽deflate_module (shared) 聽dir_module (shared) 聽env_module (shared) 聽filter_module (shared) 聽mime_module (shared) 聽mpm_prefork_module (shared) 聽negotiation_module (shared) 聽php7_module (shared) 聽proxy_module (shared) 聽qos_module (shared) 聽reqtimeout_module (shared) 聽rewrite_module (shared) 聽setenvif_module (shared) 聽socache_shmcb_module (shared) 聽ssl_module (shared) 聽status_module (shared) 聽 聽 Tendria que aparecer en algun lugar mas? 聽 saludos 聽 Ivan 聽 Pareciera que esta habilitado y que no va por ahi el tema: Otra forma de comprobar si esta ok el rewrite, es crear un archivo PHP con esta informacion. $isEnabled = in_array('mod_rewrite', apache_get_modules()); echo ($isEnabled) ? 'Enabled' : 'Not enabled'; Si te dice ENABLE esta habilitado, caso contrario no. 聽 Saludos. Link to comment Share on other sites More sharing options...
jaloise Posted April 20, 2020 Share Posted April 20, 2020 # ~~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: local.prestashop1764.com RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^local.prestashop1764.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^local.prestashop1764.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,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> </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 Aca te pongo un HTACCESS LIMPIO de Prestashop 1.7.6.4, lo unico que tenes que hacer es reemplazar聽local.prestashop1764.com por tu URL. @ivanson7 Link to comment Share on other sites More sharing options...
jaloise Posted April 20, 2020 Share Posted April 20, 2020 On 4/19/2020 at 4:00 AM, juanrojas said: cual es el parametro que se deberia de revisar? porque yo lo hice y lo unico que me aparece en la busqueda con ese termino es聽 聽 Verifica unos comentarios anteriores que doy otro metodo para verificar si esta activo. Al parecer en tu host no lo esta. Link to comment Share on other sites More sharing options...
juanrojas Posted April 20, 2020 Share Posted April 20, 2020 efectivamente, me ha contestado el servidor y me dicen que no lo pueden activar por ser un servidor compartido, no estoy del todo seguro pero me parece que el servidor no tiene ni idea porque trabajo con muchos servidores compartidos y nunca hab铆a escuchado esto. Link to comment Share on other sites More sharing options...
ivanson7 Posted April 20, 2020 Author Share Posted April 20, 2020 1 hour ago, jaloise said: $isEnabled = in_array('mod_rewrite', apache_get_modules()); echo ($isEnabled) ? 'Enabled' : 'Not enabled'; Me sale esto, creo que no esta activado 聽 聽 Link to comment Share on other sites More sharing options...
ivanson7 Posted April 20, 2020 Author Share Posted April 20, 2020 56 minutes ago, jaloise said: # ~~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: local.prestashop1764.com RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^local.prestashop1764.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.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} ^local.prestashop1764.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^local.prestashop1764.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,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> </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 Aca te pongo un HTACCESS LIMPIO de Prestashop 1.7.6.4, lo unico que tenes que hacer es reemplazar聽local.prestashop1764.com por tu URL. @ivanson7 Hecho pero aun con esto sigue saliendo el 404. Link to comment Share on other sites More sharing options...
jaloise Posted April 20, 2020 Share Posted April 20, 2020 4 hours ago, juanrojas said: efectivamente, me ha contestado el servidor y me dicen que no lo pueden activar por ser un servidor compartido, no estoy del todo seguro pero me parece que el servidor no tiene ni idea porque trabajo con muchos servidores compartidos y nunca hab铆a escuchado esto. Si, esa respuesta es muy rara. En cualquier servidor esta activo, es una funcionalidad basica y necesaria. Link to comment Share on other sites More sharing options...
jaloise Posted April 20, 2020 Share Posted April 20, 2020 3 hours ago, ivanson7 said: Me sale esto, creo que no esta activado 聽 聽 Lo pusiste entre tags de php?聽 聽 <?php $isEnabled = in_array('mod_rewrite', apache_get_modules()); echo ($isEnabled) ? 'Enabled' : 'Not enabled'; ?> 聽 Link to comment Share on other sites More sharing options...
ivanson7 Posted April 20, 2020 Author Share Posted April 20, 2020 49 minutes ago, jaloise said: Lo pusiste entre tags de php?聽 聽 <?php $isEnabled = in_array('mod_rewrite', apache_get_modules()); echo ($isEnabled) ? 'Enabled' : 'Not enabled'; ?> 聽 Perdon, fallo mio, dice Enable聽 Link to comment Share on other sites More sharing options...
jaloise Posted April 20, 2020 Share Posted April 20, 2020 3 hours ago, ivanson7 said: Perdon, fallo mio, dice Enable聽 Muy raro. Si queres por privado pasame el sitio, el acceso al administrador y creame un usuario para ver si puedo ayudarte. Link to comment Share on other sites More sharing options...
ivanson7 Posted April 23, 2020 Author Share Posted April 23, 2020 Solucionado!!!聽 todo el problema estaba en un error tipografico del vhost 聽 <Directory "/var/www/v2.test1234.es"> en el vhost cuando tenia que ser <Directory "/var/www/v2.test-1234.es"> 聽 Encontrado con la teoria del patito de goma "https://es.wikipedia.org/wiki/M茅todo_de_depuraci贸n_del_patito_de_goma" 聽 Link to comment Share on other sites More sharing options...
jaloise Posted April 23, 2020 Share Posted April 23, 2020 2 hours ago, ivanson7 said: Solucionado!!!聽 todo el problema estaba en un error tipografico del vhost 聽 <Directory "/var/www/v2.test1234.es"> en el vhost cuando tenia que ser <Directory "/var/www/v2.test-1234.es"> 聽 Encontrado con la teoria del patito de goma "https://es.wikipedia.org/wiki/M茅todo_de_depuraci贸n_del_patito_de_goma" 聽 Buenisimo!聽 Sabia que era algo directamente del servidor. Me alegro que hayas encontrado la respuesta en el VirtualHost. Saludos! 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