Insert CSS and JS files stored in another folder

0

I have two domains: domain.com and domain.com created in the httdocs folder and being accessed normally. I have a folder called devphp as below:

Thedomainsdomain.comanddomain.comsharethesameinformation(css,js,img),butIamnotabletosuccessfullyinsertfilesintodomains.

Itriedthefollowingways

<linkrel="stylesheet" href="../dev/public/assets/_css/0_font-awesome.min.css" type="text/css" />

<link rel="stylesheet" href="C:\xampp\htdocs\dev\public\assets\_css                    
asked by anonymous 06.04.2017 / 18:46

1 answer

0

C: is equivalent to using the protocol file:/// , file is to load local machine files and not the server, the broker would be:

<link rel="stylesheet" href="/dev/public/assets/_css/0_font-awesome.min.css" type="text/css" />

If CSS is in the correct folder and if the domain is actually pointing to htdocs , now if the domain points to _public (using VirtualHost for example), then the correct would be this :

<link rel="stylesheet" href="/assets/_css/0_font-awesome.min.css" type="text/css" />
    
06.04.2017 / 18:51