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
https://forums.phpfreaks.com/topic/95987-mod_rewrite-help-needed/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.