Forum Moderators: phranque
# this does not work
Redirect 301 /wp-content/themes/THEME_NAME/js/elq_now/elqRedir.htm?ref=http://SITE.com/pdf/datasheets/X0202.01_PDF_NAME.pdf http://go.pardot.com/l/7112/2011-05-16/XOXO
# removing the parameter works but then all pdf links will lead to the same destination.
Redirect 301 /wp-content/themes/THEME_NAME/js/elq_now/elqRedir.htm http://go.pardot.com/l/7112/2011-05-16/XOXO
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} http://SITE.com/pdf/datasheets/X0202\.01_PDF_NAME\.pdf
RewriteRule ^wp-content/themes/THEME_NAME/js/elq_now/elqRedir\.htm http://go.pardot.com/l/7112/2011-05-16/XOXO [R=301,L]
RewriteCond %{QUERY_STRING} val
RewriteRule ^/page1 /page2