301 Redirect Loop Created Trying to Track Google Analytics
-
Hi,
I am attempting to track Google Analytics using a 301 redirect by modifying my .htaccess file, as detailed in this post
When I added the following to my .htaccess, it resulted in a loop and I can see some of the information added by WP was duplicated above that by me, but I don’t know how to accomplish this.
Top portion of code is what I added.
In order to obtain usage reports on each of my parked domains, I feel some type of code such as the stuff I attempted is needed, isn’t it? That is what I’m after: usage reports so we can use the different parked domains in different marketing campaigns and I will be able to measure their effectiveness.
RewriteEngine On
RewriteCond %{HTTP_HOST} assetdocsystems\.me
RewriteRule ^$ https://www.assetdocsystems.com/?utm_source=redirects&utm_medium=http%3A%2F%2Fwww.assetdocumentationsystems.com&utm_campaign=301_redirects [R=301,L]
RewriteRule ^$ https://www.assetdocsystems.com/?utm_source=redirects&utm_medium=http%3A%2F%2Fwww.formypeaceofmind.com&utm_campaign=301_redirects2 [R=301,L]
RewriteRule ^$ https://www.assetdocsystems.com/?utm_source=redirects&utm_medium=http%3A%2F%2Fwww.homeandbusinessinventory.com&utm_campaign=301_redirects3 [R=301,L]
RewriteRule ^$ https://www.assetdocsystems.com/?utm_source=redirects&utm_medium=http%3A%2F%2Fwww.assetdocservices.com&utm_campaign=301_redirects4 [R=301,L]# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{QUERY_STRING} !lp-variation-id
RewriteRule ^go/([^/]*)/([0-9]+)/ /go/$1?lp-variation-id=$2 [QSA,L]
RewriteCond %{QUERY_STRING} !lp-variation-id
RewriteRule ^go/([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
RewriteRule ^landing-page=([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
- The topic ‘301 Redirect Loop Created Trying to Track Google Analytics’ is closed to new replies.