Jump to content

(SOLUCIONADO) Error al activar las URL amigables


ivanson7

Recommended Posts

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

780380302_Capturadepantalla2020-04-18alas8_04_46.thumb.png.9a349c65676b18ef82167c2ba302b40d.png

 

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 by ivanson7 (see edit history)
Link to comment
Share on other sites

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 by ivanson7 (see edit history)
Link to comment
Share on other sites

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 

2020-04-19_0859

 

Link to comment
Share on other sites

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

# ~~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

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 

2020-04-19_0859

 

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...