Greetings,
I manage a website that uses relative URLs for all local content. For example: page_1/php instead of https://website.com/page_1.php.
The problem I see when creating a new link is that CCount requires you to enter an absolute URL and the generated URL is also absolute.
How do I update the relative URL such that CCount will function without having to replace the relative URL with an absolute URL?
Absolute vs. Relative URL
Re: Absolute vs. Relative URL
The URL you enter into CCount must be an absolute one, starting with http(s)://
The generated URL can be used either as a relative or absolute one, so both these should work:
https://example.com/ccount/click.php?id=1
ccount/click.php?id=1
But, honestly, I think you are loosing time and effort over irrelevant details (relative vs absolute).
The generated URL can be used either as a relative or absolute one, so both these should work:
https://example.com/ccount/click.php?id=1
ccount/click.php?id=1
But, honestly, I think you are loosing time and effort over irrelevant details (relative vs absolute).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Absolute vs. Relative URL
Thank you. That is what I was looking for. I will test it out. The reason I can't have a bunch of absolute URLs is that during local testing absolute links point to the live site.