Viewing 2 replies - 1 through 2 (of 2 total)
  • The problem with your configuration is that you have messed up the .htaccess code without a knowledge.

    Each RewriteRule statement is totally independent, and can be preceded by one or more RewriteCond instruction (assuming they are concatenated with the OR condition).

    In the absence of a RewriteCond, the RewritingRules are parsed and eventually executed if the condition matches.

    In your case, the 2, 3 and 4 statements have no conditions and your .htaccess is saying something like this: no matter that page, do a page redirect to https://www.assetdocsystems.com/ attaching some GA campaign tracking.
    I assume the above lines to be included in the .htaccess file hosted on the assetdocsystems.com domain. If this is the case, having no conditions to prevent a loop, means that your server will reload the page again and again up to the 50th redirect when your browser will stop the endless loop.

    I’m not sure what you want to achieve. It looks like you want to do some campaign tracking without manual tagging the pages all the time. But the copy and paste approach without reading through the documentation is normally set to fail as you have found out.

    Thread Starter mitci2315

    (@mitci2315)

    I appreciate the reply. My understanding of WP help, is that a user such as myself should search for related topics and try to fix issues themselves, and then ask for help if documented issues do not solve their problem. So when you say I have messed up the .htaccess without a knowledge, I am trying not to take offense. I thought I had arrived at that particular solution through research for a best practice.

    I am a WP beginner. As stated above, yes – I want “usage reports so we can use the different parked domains in different marketing campaigns and I will be able to measure their effectiveness.” Campaign tracking, as you said.

    I have read through documentation, but reading and understanding can be entirely different animals. In my case with this – they are. I read, but I do not understand.

    What conditions do I need to add to prevent a loop? Since I am not a developer, I have been resorting to “cut and paste”, as you said, because I do not have the knowledge or experience to create my own code.

    I appreciate any help in this that is provided.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘301 Redirect Loop Created Trying to Track Google Analytics’ is closed to new replies.