Forums

Aweber Pass subscriber info (6 posts)

  1. ianm7323
    Member
    Posted 1 year ago #

    Hello everyone. This is my first thread on the WordPress forums only due to the fact I've been tearing my hair out over the last 4 days. My problem is with the Aweber option to pass subscriber info to your success page. The URL that aweber uses contains the id "name" and as a result I get a 404 error page.

    http://mydomain.org/account-activation?email=test%40mydomain.org&from=test%40mydomain.org&meta_adtracking=&meta_message=1&name=Test%203&unit=mydomain......

    In my search for a solution I discovered that wordpress has reserved the id "name" which is why this does not work. If I manually delete the part of the url "&name=test" then the page will load fine.

    I have also learned that it is possible to fix this by using the rewriterule command in the htaccess file but for the life of me I can't get this working.

    http://wordpress.org/support/topic/aweber-personalization-for-confirmsuccessalready-subscribed-pages?replies=5

    I would really love to find a fix for this but more so, could someone answer me this question.

    With the amount of wordpress and aweber users across the world, how is it this not a common regularly encountered problem. Why is there no support or documentation for this. It's mind boggling. I've found threads going back 2 years on this problem.

    I got intouch with the support people at Aweber and this was there response

    "Hi, Ian.

    Unfortunately, not all web sites are compatible with the coding necessary to place that system, and it sounds like your page is one of them."

    Great. So your not going to do anything about the compatibility issue then.

    Sorry..rant over.

    I dont actually require the &name in the url. If someone can show me how to remove just that id via htaccess I would be eternally greatfull.
    Please help.

  2. ianm7323
    Member
    Posted 1 year ago #

    ANYONE?

  3. steveovens
    Member
    Posted 1 year ago #

    Hi Ian,

    I've solved this using a .htaccess rewrite:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # Handle AWeber rewrites
    RewriteCond %{REQUEST_URI} ^/thank-you.* [NC]
    RewriteCond %{QUERY_STRING} ^(.*)\bname\b=(.*)
    RewriteRule ^(.+) /$1?%1&firstname=%2 [L,NE,R=302]
    </IfModule>

    Replace "thank-you" with whatever your confirmed opt-in landing page slug is.

    Replace "firstname" with whatever you want the variable name to be re-written as

    Hope this helps

    Steve

  4. ianm7323
    Member
    Posted 1 year ago #

    Steve,

    Thank you ever sooo much. I got it working. Your a star.

  5. Arren
    Member
    Posted 1 year ago #

    Genius Steve thanks :)

  6. Malchick
    Member
    Posted 1 year ago #

    Thanks much Steve, your code was a big help.

    I did, however, notice one small issue. The code works just fine, but it does add an extra "&" to the rewritten query string. I think your condition for the query string picks up everything up to the problematic field name (including the '&'), so when you use %1 to replace it all in the rewrite rule it already includes the "&" -- which means you don't need the subsequent one before the changed field name. So, the last line should be:

    RewriteRule ^(.+) /$1?%1firstname=%2 [L,NE,R=302]

    Or, at any rate, that's how my server liked it.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic