Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Cookie/Jar.php on line 63

Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Cookie/Jar.php on line 73

Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Cookie/Jar.php on line 89

Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Cookie/Jar.php on line 102

Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Cookie/Jar.php on line 111

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/admon/www/binways/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
Instalar prestashop en un subdirectorio – BinWays – Software de gestión a medida para PYMEs

Instalar prestashop en un subdirectorio

//settings.inc.php

define('__PS_BASE_URI__', '/_SUBDIRECTORIO_/');

Otra de mis notas mentales, una simple línea de código de la que nunca voy a conseguir acordarme de memoria…

Si queremos tener nuestra tienda accesible en un subdirectorio de nuestro dominio, por ejemplo:

http://binways.com/mitienda

hay que definir en el archivo settings.inc.php la constante __PS_BASE_URI__, con el valor del nombre de nuestro subdirectorio.

Otra cosa que hay que hacer en el caso de cambiar la url de nuestra tienda es modificar la tabla «ps_shop_url» (ps_ es el prefijo que utilices en tu base de datos) con la nueva url.

Y por último, aun que esto no esta relacionado con instalar prestashop en un subdirectorio, sino con cambiar la url del sitio, es modificar la tabla «ps_configuration» (ps_ es el prefijo que utilices en tu base de datos) cambiando los valores de las filas PS_SHOP_DOMAINPS_SHOP_DOMAIN_SSL

Este tipo de configuraciones las utilizo normalmente en mi trabajo como programador autónomo para crear entornos de preproducción donde el cliente pueda validar los cambios antes de ponerlos online en la web real.

Deja una respuesta

Tu dirección de correo electrónico no será publicada.