WordPress.org

Ready to get started?Download WordPress

Forums

Passing Aweber variables to a WordPress page (2 posts)

  1. bravenewniche
    Member
    Posted 2 years ago #

    kristarella had a very helpful .htaccess rule for changing the &name= portion of the Aweber query string (WordPress blocks it because "name" is a reserved word).

    Her forum reply is here.

    The .htaccess rule looks like this:

    RewriteCond %{QUERY_STRING} (.+?)&name=(.+)
    RewriteRule ^page-name/ /page-name/?%1&fullname=%2 [R,NC,L]

    And I've made sure I put it between

    RewriteEngine On
    and
    RewriteBase /

    But I think it may not be working because my page is a sub-page and so when I do this:

    RewriteRule ^gifts/thanks/ /gifts/thanks/?%1&fullname=%2 [R,NC,L]

    I have a feeling those forward slashes aren't right. I've tried various combinations, but it's not working. Or is there some other issue I'm not seeing?

  2. bravenewniche
    Member
    Posted 2 years ago #

    Still don't have the mod_rewrite working, but for my purposes I don't need the name variable anyway, so I went with this solution:

    Add this line

    unset($_GET['name']);

    to your wp_config.php file.

    Found that solution here.

Topic Closed

This topic has been closed to new replies.

About this Topic