Page URL not defined - On ALL reported urls, ALL the time

Hey Guys,

On May 10th Piwik started to report “Page URL not defined” which is happening across all our pages. This is happening on all our pages except for our blog which is run in wordpress.

The only change I can think that was made is a few changes so that http://domain.com points to http://www.domain.com as well as http://#.#.#.#/ (our ip) points to http://www.domain.com.

I really can not thing of anything else that was changed, but could be wrong and hoping someone might be able to lead me to some idea on why this is happening.

I checked the forums and google and checked their suggestion (read the docs - none that apply here) and the tracking code is correct and verified the footer file its in didn’t even change.

Looking forward to hearing some suggestions and thanks in advance.

Just an update, after removing these lines everything worked… BUT … i still need to know how to fix this…


RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^209\.209\.209\.209
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

We need the above to take place so google doens’t see duplicate content since it stores results based off ip or names. Also domain.com should always be at our preferred www.domain.com.

Looking forward to your assistance.

the redirects shouldnt cause a problem to Piwik, unless the piwik.php itself is also redirected. Make sure the htaccess does not apply to piwik files.

Thanks Matt, and understand. So I went back and was able to reproduce it and thought, well, if I can reproduce this there must be something else in this .htaccess file that would be touching the piwik php… found out another rule that could have been and sure enough a few tweaks fixed it.

Thanks :slight_smile: