Page 1 of 1

CCount, https and change links in database

Posted: Fri Jan 15, 2021 9:16 pm
by Feechen
Hi,

I use CCount version 2.1.2 and I have about 1080 links in the database. Now I want to change from http to https. I changed all links in every php file to https. But there is a problem with my link database: I also want to change the links in the database to https. That means I have to change 1080 links from http to https. First I created a backup file from the database. Then I changed all links to https with search and replace and saved the file. Then I wanted to import this file again. But it is not possible to do so. No links can be seen.

Now I read in this forum that this error is caused because of a different length of the links. My question is:

Is there a possiblity to replace http by https automatically? You can imagine how long it will take to change the links manually.

Is there a solution for this issue?

Thank you for your help.

Regards,
Feechen

Re: CCount, https and change links in database

Posted: Sat Jan 16, 2021 9:14 am
by Klemen
Try this:

1. backup existing CCount files
2. download this file: https://www.phpjunkyard.com/extras/ccount_https.zip
3. upload "https.php" to your CCount folder
4. open https.php in your browser (example.com/ccount/https.php)
5. test; if it worked well, delete https.php from the server

Re: CCount, https and change links in database

Posted: Sat Jan 16, 2021 12:00 pm
by Feechen
Hi,

I thank you so much! Everything is working fine now. You saved me a lot of time and work! This script is awesome!

Cheers,
Feechen