How to load main domain css for subdomain

In some cases main domain need to share the css with its subdomain. This can be achieved by specifying the main domain name in the codes of subdomain before loading the css.

<base href="http://maindomain">

<link rel="stylesheet" href="/css/style.css" type="text/css">

 

Leave a Reply

Your email address will not be published. Required fields are marked *