Jump to content

Spostamento sito prestashop nella root del dominio


franz66

Recommended Posts

Ciao,

premetto di essere neofita di prestashop, ho la necessità di spostare un sito realizzato in PS ver. 1.7.8 da una sottocartella alla root del dominio. Siccome nella root sono presenti altri file/cartelle ho pensato di procedere come uso fare con WP ovvero lasciando i files nella cartella e spostando solo l'index.php nella root. A tal proposito ho spostato i files index e htaccess nella root ed ho modificato il primo aggiungendo

require dirname(__FILE__).'/shop/config/config.inc.php';

$_SERVER['SCRIPT_FILENAME'] = __DIR__ . '/shop/index.php';
$_SERVER['SCRIPT_NAME'] = '/shop/index.php';
$_SERVER['PHP_SELF'] = '/shop/index.php';

ed il file htaccess con queste 

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/shop/
RewriteRule ^(.*)$ /shop/$1 [L]

ho modificato la configurazione dell'URL nel Back Office:

URL del negozio in https://miodominio.com/

Base URL in /shop/

Ho pulito la cache ma ottengo sull'url del dominio Error 500 Internal Server Error.

Qualche suggerimento in merito? Qualcuno ha mai provato questa soluzione? Non vorrei dovere spostare tutto il contenuto della sottocartella nella root.

Grazie

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...