Redirect non-www to www / Piwik Page URL not defined


#1

I use Piwik version 2.8.1. In my file .htacces from my website i use a code to redirect non-www to www .
Code :
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

After in used this code my piwik have a problem when i enter in Visitors- > Visitor log.
The Piwik records the visitors but the links is not displayed . - > "Page URL not defined ". Can someone help me ?


(Matthieu Aubry) #2

Your redirect does not likely redirect the URL Parameters as well maybe, or some other limitationin the redirect?


#3

this is all code in my .htacces file :

Options +FollowSymLinks

RewriteEngine On

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

RewriteRule ^index.html$ index.php [QSA]

RewriteRule ^([0-9]+),banners.html index.php?p=banners-$1 [QSA] #banners
RewriteRule ^([0-9]+),(.*).html index.php?$1,$2 [QSA] #products

RewriteRule ^(.),([0-9]+),(.).html index.php?$1,$2,$3 [QSA] #tags
RewriteRule ^(.),([0-9]+)(,[0-9])(,[0-9])(,[0-9]).html index.php?$1,$2,$3,$4,$5 [QSA]
RewriteRule ^(.
),(.*).html ?,$1,$2 [QSA]

RewriteRule ^.,(.),(.*).xml index.php?,$1,$2 [QSA]

RewriteRule ^sitemap.xml index.php?p=sitemap-xml [QSA]