Cookieless Domain redirect in WHM/cPANEL

Posted by Patrick Lanfranco on Server Fault See other posts from Server Fault or by Patrick Lanfranco
Published on 2012-05-08T03:26:31Z Indexed on 2012/06/20 21:18 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

I am currently trying to get my head around in understanding how to set-up a "cookieless" domain using WHM / Cpanel - unfortunately without any success at this moment.

I have a Magento store and I would like to use "cookieless domains" for my media, skin (template) and js files. Magento has a nice feature to define URL for those folders.

My current setup is as follows:

  • www.mydomain.com <- main store
  • media.mydomain.com <- subdomain to the media folder (mydomain.com/media/)
  • skin.mydomain.com <- subdomain to the media folder (mydomain.com/skin/)
  • js.mydomain.com <- subdomain to the media folder (mydomain.com/js/)

I think it's poinless to have them used as "cookieliess domains" since my Magento installation uses .mydomain.com as cookie domain, so what I would like to achieve is to register a new additional domain and have it point via WHM / cPanel to those specific locations. I have tried to change the A and CNAME records although without any success as they were just simply redirecting from one page to another in the browser (newdomain.com -> jump to old.com). What kind of records do I have to set to have this working properly?

Some advice would be highly appreciated.

© Server Fault or respective owner

Related posts about dns

Related posts about cpanel