noooob Posted March 13, 2008 Share Posted March 13, 2008 Hi All, I am using a tracking software which generates a unique ID value for each visit to a page. My site uses .htaccess redirects for all links to hide affiliate links. ex. Redirect /faq.html http://someaff.site.com?x=faq I need to append the unique ID, generated by php as <?php echo var; ?> , to the redirected affiliate link for tracking. i.e. http://someaff.site.com?x=faq&id=uniqueid I am able to pass the unique ID as a variable to the /faq.html link as: /faq.html?id=uniqueid Can someone advise me on using Rewrite to be able to pass this unique ID as needed to the redirect destination? Kind Regards. Quote Link to comment Share on other sites More sharing options...
powerspike Posted March 18, 2008 Share Posted March 18, 2008 not sure about that but one way you can do it RewriteRule ^faq/(.*)/$ http://someaff.site.com/x=faq&id=$1 [L] so you'd like to something like www.mysite.com/faq/343f2/ and the 343f2 would be your aff code. hopefully that'll work for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.