Archive for month: June, 2018

There are several descriptions online on how to do this but in one occasion, even though I followed the instructions carefully it kept redirecting me to the old domain name. In my particular case the culprit was that the site used file system cache which was active before the move.

The following procedure fixed my problem. The base of the instructions come from the PrestaShop site with my additions below.

Put the site in Maintenance mode.

Copy all files from the old site (domain) to the new using for example a FTP program.

Dump the old site database to a file and import the database on the new server.

Edit config/settings.inc.php and update the values for _DB_SERVER, _DB_NAME, _DB_USER, _DB_PASSWD and you might need to adjust _PS_DIRECTORY value.

Using phpMyAdmin, go to the table ps_store_url and update the record regarding domain name and physical uri.

Using phpMyAdmin, go to the table ps_configuration and find the records for column name with the records for PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL and __PS_BASE_URI__ and update the values corresponding to the new domain name and base uri.

Using FTP (or other preferred method) clear all content except index.php of the ‘/cache/smarty/compile’ and ‘/cache/smarty/cache’ directories.

Using FTP (or other preferred method) clear all content of the ‘/cache/cachefs’ directory.

Log in to the backend and disable Maintenance mode.

https://nerdia.net/wp-content/uploads/media_1_prestashop-logotype.png333797Stefan Helanderhttps://nerdia.net/wp-content/uploads/nerdia-logo-340x156.pngStefan Helander2018-06-25 14:18:552018-05-16 14:21:00How to move a PrestaShop 1.6 from one domain to another (resolving redirect problems)

Your PFX certificate file is protected with a password. It can be converted to CRT and KEY files using SSL:

openssl pkcs12 -in certfile.pfx -nocerts -out keyfile-encrypted.key

When you enter this command you will be asked to type in the pfx file password in order to extract the key. You will be asked to enter a passphrase for the encrypted key. The key will be stored in keyfile-encrypted.key.

The exported keyfile is encrypted but you might need it in unencrypted format. To unencrypt the key, do:

openssl rsa -in keyfile-encrypted.key -out keyfile.key

You will be asked for the passphrase that you entered in the previous step. The unencrypted key will be stored in keyfile.key.

Then it is time to extract the certificate:

openssl pkcs12 -in certfile.pfx -clcerts -nokeys -out certfile.crt

Again, you will need to enter the pfx file password in order to extract the certificate. The certificate will be stored in certfile.crt.

There are several issues that can cause local anchor links to not scroll to the right position. The first thing to check is if you have an id-tag that has the same name as the anchor. In this case the browser will scroll to the id position instead. The solution is to name the anchor and id with different names.

To avoid this, make sure the anchors (name) and id have different names.

There are also other sitiuations where the local anchor does not scroll correctly covered in this article.

https://nerdia.net/wp-content/uploads/nerdia-logo-340x156.png00Stefan Helanderhttps://nerdia.net/wp-content/uploads/nerdia-logo-340x156.pngStefan Helander2018-06-06 07:19:442018-05-10 07:33:39Anchor links does not scroll to the correct position

Cookies

This website use cookies for user tracking (logged in users and commenters), displaying ads and for statistical purposes. By continuing to visit the site you agree on the use of cookies on this website. If you do not whish to agree to this, you should leave the website and clear your browser’s cookies.