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