Jump to content

mod_rewrite help needed


noooob

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.