Woopra Forums » Feature Requests

www or non-www

(4 posts)
  • Started 4 months ago by rok
  • Latest reply from kjarni
  • This topic is not a support question

Tags:

  • DG
    Member

    Allow us to WWW or non-WWW in domain i.e. add http://www.domain.com or domain.com.

    Reason: the site's that uses www for e.g. my site use http://www.ditii.com and current domain setting only allows "ditii.com". In that all requests that's Woopra sending to "ditii.com" are redirecting to http://www.ditii.com and generating lots of server load.

    If www or non-www preference are allowed, this'll save quite significant amount of bandwidth and server resource, because the re-direction will be avoided, as per user settings.

    Posted 4 months ago #
  • DG, this will not affect the tracking. It's just a client side thing, and I'm going to add an option (Append www) in future releases.

    Chief Eye Candy Officer
    Posted 4 months ago #
  • DG
    Member

    Elie,

    Thanks for your reply. Looking forward to see the change. On the other hand, today I've noticed my stats for July 23rd are not correct.

    Here's some info for your reference:

    I've time set to +5.30 -IST, so for me, it's July 24th 2.28 am at this moment.

    Yesterday (July 23rd) at around 3.30am IST, I had checked my Woopra account and I had about 1600 visits for the day(July 23), so at the end of the day, it should have about +/-8600 visits.

    But my account stats for July 23rd is down from 1600 to 408 visits.

    I checked my other tracking service as well a my hosting account panel, both are shows 8582 - 8700 visits for July 23rd.

    Can you advise, what's the error?

    Posted 4 months ago #
  • kjarni
    Member

    <?php

    header("Location: http://site.com");

    ?>

    it's just as simple as that, won't create any real load...

    if www and non-www are in the same place you can use

    <?php

    if($_SERVER['HTTP_HOST'] == "site.com")
    {
    header('Location: http://www.site.com
    }
    else
    {
    echo "site content";
    }

    ?>

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.