Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I currently use trans.png.php?id=1&campaign=test to track my newsletter campaigns.
I want to use trans.png instead as it's the src of an img tag.
How can i do this in htaccess? Also is there any way I can disguise the get variables?
RewriteRule /([0-9a-z]+)/([0-9a-z]+)\.png /trans.png.php?id=$2&campaign=$1
Then a URL of
would translate to
Required, but never shown