Accordion Menu / Posts /

How to set the license when my site has multiple domain names?

0
My website has multiple domain names pointing the same site. I know the license keys will be different for each domain. How do I set the license keys to the single accordionmenu.js file?
Stephen  3 years ago   viewed: 4094    

1 Answer

0

Suppose you have three domains pointing to the same website: domain1.com, domain2.com and domain3.com. If domain2.com and domain3.com will be redirected to domain1.com, then you only need to purchase a license for domain1.com. Otherwise you have to purchase multiple licenses for each domain (suppose the acquired licenses are lic1, lic2 and lic3 respectively). Then you can open the accordionmenu.js file with Notepad, and insert the following script(in green color) between the var amenuOptions={...} and the var amenu =...  :

var amenuOptions = { menuId: "acdnmenu", linkIdToMenuHtml: null, expand: "single", license: "lic1" }; if(document.domain.indexOf("domain2.com")!=-1) amenuOptions.license = "lic2"; else if (document.domain.indexOf("domain3.com")!=-1) amenuOptions.license = "lic3"; var amenu = new McAcdnMenu(amenuOptions);

Note: Above domain2.com and domain3.com must be in lower case.

Milo   3 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: