CCount, https and change links in database

Post your Click counter digestion problems here
Post Reply
Feechen
Posts: 2
Joined: Fri Jan 15, 2021 9:04 pm

CCount, https and change links in database

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: CCount, https and change links in database

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Feechen
Posts: 2
Joined: Fri Jan 15, 2021 9:04 pm

Re: CCount, https and change links in database

Post 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
Post Reply