Jump to content

Capturing referring domain, and adding it to links?


HostOrca

Recommended Posts

I have 3 sites:

 

1) hostorca.co.uk

2) hostorca.com

3) hostorca.net (whmcs)

 

What I want to do in the whmcs templates is capture which domain the user came from (ie hostorca.co.uk or hostorca.com), then insert that domain into the links (for my sites main nav bar), and it do it for each page in whmcs that the user goes to (in whmcs). Basically if a user comes from hostorca.com, to hostorca.net, they can click on a link in the top nav and it will take them back to the page on hostorca.com

 

Also, if they come to the site from anysite other than hostorca.com or hostorca.co.uk then a default domain will be set (hostorca.co.uk).

 

Any suggestions on how best to do this?

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated