unfortunately lscache accept reference from any Google resource with gclid
https://www.domain.com/page_name&gclid=dhjkhlJLHjlH79798pklKHJHUIHjlh
as different url from https://www.domain.com/page_name
and
- not provide cached page (even page_name already cached)
- create in lscache cached copy for page_name&gclid=dhjkhlJLHjlH79798pklKHJHUIHjlh that never been used again
is right and enough way add to .htaccess rewrite rule:
to redirect page_name&gclid=dhjkhlJLHjlH79798pklKHJHUIHjlh to cached page_name without creating unnecessary copy.
https://www.domain.com/page_name&gclid=dhjkhlJLHjlH79798pklKHJHUIHjlh
as different url from https://www.domain.com/page_name
and
- not provide cached page (even page_name already cached)
- create in lscache cached copy for page_name&gclid=dhjkhlJLHjlH79798pklKHJHUIHjlh that never been used again
is right and enough way add to .htaccess rewrite rule:
Code:
RewriteCond %{QUERY_STRING} "gclid=" [NC]
RewriteRule (.*) /$1? [R=301,QSD]
Last edited: