Jump to content

Recommended Posts

Buenos días a todo el mundo,

Acabo de migrar mi tienda de hosting siguiendo este manual https://victor-rodenas.com/migrar-tu-tienda-de-local-a-internet-bajo-prestashop-1-7/ a rajatabla pero no he conseguido que se pueda acceder:

el backoffice https://alvilasalo.com/store/admin672bv7ehn/index.php?

la tienda https://alvilasalo.com/store/

Si alguien tiene alguna idea de que puede ser agradecería su ayuda, muchas gracias.

 

Link to comment
Share on other sites

Hola @alvilasalo

No parece un problema con apache, accediendo a https://alvilasalo.com/store/ aparece error 500 en prestashop, más bien es una configuración de la aplicación o del propio .htaccess que tienes generado.

Yo probaría revisando primero en la base de datos que la tabla ps_shop_url tienes configurado correctamente los campos domain y domain_ssl con tu nombre de dominio alvilasalo.com y en physical_url /store/, ya que tienes montada la tienda en este directorio. Con este cambio tendrías que poder acceder al backoffice y ya regenerar el .htaccess desde la opción  Parámetros de la tienda -> Tráfico & SEO y URLs y dentro del bloque “Configuración de URLS” volver a guardar los cambios.

Link to comment
Share on other sites

Gracias Loadinges y Nickz por la a yuda,

He estado siguiendo vustros conssejos y de momento he conseguido que al menos funcione la tienda (sin fotos), pero el back office ni a tiros. Estos son los parametros que he usado a ver si os dan alguna pista:

    'database_host' => '217.76.150.121',  
    'database_port' => '',
    'database_name' => 'qafn160',
    'database_user' => 'qafn163',
    'database_password' => 'M0rtadel0',
    'database_prefix' => 'ps_',
    'database_engine' => 'InnoDB',
    'mailer_transport' => 'smtp',
    'mailer_host' => '127.0.0.1',
    'mailer_user' => NULL,
    'mailer_password' => NULL,
    'secret' => 'v794nnQmW7CSEBKVf0C0H5W88M0V3i33DgzWUpfsXq158QaXrKku025o',
    'ps_caching' => 'CacheMemcache',
    'ps_cache_enable' => false,
    'ps_creation_date' => '2020-07-05',
    'locale' => 'es-ES',
    'use_debug_toolbar' => true,

Link to comment
Share on other sites

16 hours ago, alvilasalo said:

Gracias Loadinges y Nickz por la a yuda,

He estado siguiendo vustros conssejos y de momento he conseguido que al menos funcione la tienda (sin fotos), pero el back office ni a tiros. Estos son los parametros que he usado a ver si os dan alguna pista:

    'database_host' => '217.76.150.121',  
    'database_port' => '',
    'database_name' => 'qafn160',
    'database_user' => 'qafn163',
    'database_password' => 'M0rtadel0',
    'database_prefix' => 'ps_',
    'database_engine' => 'InnoDB',
    'mailer_transport' => 'smtp',
    'mailer_host' => '127.0.0.1',
    'mailer_user' => NULL,
    'mailer_password' => NULL,
    'secret' => 'v794nnQmW7CSEBKVf0C0H5W88M0V3i33DgzWUpfsXq158QaXrKku025o',
    'ps_caching' => 'CacheMemcache',
    'ps_cache_enable' => false,
    'ps_creation_date' => '2020-07-05',
    'locale' => 'es-ES',
    'use_debug_toolbar' => true,

El problema debe estar seguramente en el .htaccess que tienes en el raíz de tu prestashop, ¿podrías copiarnos aquí el contenido del .htaccess para revisarlo?

Link to comment
Share on other sites

3 hours ago, Loadinges said:

El problema debe estar seguramente en el .htaccess que tienes en el raíz de tu prestashop, ¿podrías copiarnos aquí el contenido del .htaccess para revisarlo?

Y tanto! aquí lo tienes

# ~~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: alvilasalo.com
RewriteRule . - [E=REWRITEBASE:/store/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteCond %{HTTP_HOST} ^alvilasalo.com$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.dx.am$
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} ^alvilasalo.com$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^alvilasalo.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>

<Files composer.lock>
    # Apache 2.2
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
 

 

Link to comment
Share on other sites

On 7/27/2021 at 9:35 AM, Loadinges said:

El problema debe estar seguramente en el .htaccess que tienes en el raíz de tu prestashop, ¿podrías copiarnos aquí el contenido del .htaccess para revisarlo?

Y tanto! aquí lo tienes

# ~~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: alvilasalo.com
RewriteRule . - [E=REWRITEBASE:/store/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteCond %{HTTP_HOST} ^alvilasalo.com$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.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} ^alvilasalo.dx.am$
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} ^alvilasalo.com$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^alvilasalo.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>

<Files composer.lock>
    # Apache 2.2
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
 

Link to comment
Share on other sites

What happens when you comment:

Perdon, que pasa cuando comentes

#<IfModule !mod_authz_core.c>
      #  Order deny,allow
       # Deny from all
   # </IfModule>

y quitas el coment de  #Domain: alvilasalo.com a Domain: alvilasalo.com

ultimo deberia ser tu dominio.

Edited by Nickz (see edit history)
Link to comment
Share on other sites

1 hour ago, Nickz said:

What happens when you comment:

Perdon, que pasa cuando comentes

#<IfModule !mod_authz_core.c>
      #  Order deny,allow
       # Deny from all
   # </IfModule>

y quitas el coment de  #Domain: alvilasalo.com a Domain: alvilasalo.com

ultimo deberia ser tu dominio.

Gracias Nickz,

acabo de probarlo pero sigo sin poder acceder al Backoffice:

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on


Domain: alvilasalo.com
RewriteRule . - [E=REWRITEBASE:/store/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
 

Link to comment
Share on other sites

1 hour ago, Loadinges said:

Si nos pasas el acceso al hosting para revisar los ficheros y la base de datos (e incluso el log de errores) podemos intentar solucionarlo. Pásanoslo por privado. ;)

 

1 hour ago, Loadinges said:

Si nos pasas el acceso al hosting para revisar los ficheros y la base de datos (e incluso el log de errores) podemos intentar solucionarlo. Pásanoslo por privado. ;)

Loadinges, veo que lo has arreglado!!! No tengo palabras. 

  • Like 1
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...