Question : Append a query string to destination URL after redirect?

Is it possible to append a query string to destination URL after redirect? For example my vanity URL is "myvanityurl.com" which resolves to "mydestination.com" I want any one that comes in thru "myvanityurl.com" to have the destination URL appear as "mydestination.com?name=v1". Trying to track the effectiveness of vanity URLs.

Answer : Append a query string to destination URL after redirect?

mod rewrite in your .htacces file should do it. Make sure to include $1 at the end of the domain to carry any other url page parameters in the rewrite like this:

RewriteEngine On
# Rewrite domain diff
RewriteCond %{HTTP_HOST} ^firstdomain\.com
RewriteRule ^(.*)$ http://www.seconddomain.com/$1/?name=vanity [R=301,L]
Random Solutions  
 
programming4us programming4us