GabAntonelli
GabAntonelli

Reputation: 767

prestashop not changing base url

I have an installation of prestashop 1.6 on a domain www.mydomain.com and a virtualhost on a server for redirecting to the prestashop/public_html folder. This is my main website working perfect.

Now i would like to clone the installation in another folder prestashop/clone_html and i created an alias on the virtualhost from www.mydomain.com/clone to prestashop/clone_html

Now if i access the clone website the frontend is not working, i get a 404 error and all the links are pointing on the main domain

I tried to change settings.inc.php change the base URI on the database and delete both .htaccess and cache but the links are never changing.

I think maybe the problem is coming from multilanguage redirect? Do you have any idea what i should try to change?

Thanks

Upvotes: 0

Views: 1355

Answers (1)

Javier Elices
Javier Elices

Reputation: 2154

That is a good one! If you want to change the URL of the store and you have already migrated the contents (so no access to the admin is possible or you don´t want to bother), you may do the change directly at the PS table where this information is kept. The name of the table is <prefix>shop_url. Once you access it, the content is self explanatory. You have to play with domain or domain_ssl and then with physical_uri.

Also, using a subdomain as has been suggested in a comment may be a good idea. Depending on your hosting, you may be able to define a subdomain and make it point to a subdirectory. This keeps the physical_uri to / and may avoid other potential problems.

Upvotes: 2

Related Questions