Google analytics link trackers with URLs that match this pattern:
domain.com/?utm_source=Text+Goes+Here
Causes a 404 error at the root level. Other levels seem OK.
We’ve tried adding question marks as acceptable characters in config.php:
$config['permitted_uri_chars'] = "a-z 0-9~%.:_\-?";We’ve tried adjusting the Rewrite code as follows:
# Catch any Google campaigns directed to the home page
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^(utm_source.*)
RewriteRule ^(.*)$ /index.php? [L,PT]Also tried adding a question mark to this line in our rewrite code:
RewriteRule .* index.php?/$0 [NC]
I’ve seen some other threads with similar problems but no final resolution… any ideas?