How to call files on localhost

Asked

Viewed 746 times

0

I installed a script made in codelgniter in localhost, but the site is entire without formatting and functions working, I believe that is not making the correct call of css files, js.

<link rel="shortcut icon" type="image/png" href="http://www.localhost/assets/img/favicon.png" />

<!-- css -->
<link rel="stylesheet" href="http://www.localhost/assets/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="http://www.localhost/assets/css/foundation.min.css">
<link rel="stylesheet" href="http://www.localhost/assets/css/jquery.sidr.dark.css">
<link rel="stylesheet" href="http://www.localhost/assets/owl-carousel/owl.carousel.css">
<link rel="stylesheet" href="http://www.localhost/assets/owl-carousel/owl.carousel.css">
<link rel="stylesheet" href="http://www.localhost/assets/tooltipster/dist/css/tooltipster.bundle.min.css">      
<link rel="stylesheet" href="http://www.localhost/assets/css/app.css">

<!-- js -->
<script src="http://www.localhost/assets/js/vendor/jquery.js"></script>
<script src="http://www.localhost/assets/js/vendor/pace.min.js"></script>
<script src="http://www.localhost/assets/js/vendor/what-input.js"></script>
<script src="http://www.localhost/assets/js/vendor/foundation.min.js"></script>
<script src="http://www.localhost/assets/js/vendor/foneMascara.js"></script>
<script src="http://www.localhost/assets/js/vendor/jquery.mask.min.js"></script>
<script src="http://www.localhost/assets/js/vendor/jquery.sidr.min.js"></script>
<script src="http://www.localhost/assets/owl-carousel/owl.carousel.min.js"></script>
<script src="http://www.localhost/assets/js/vendor/jquery.paginate.js"></script>
<script src="http://www.localhost/assets/tooltipster/dist/js/tooltipster.bundle.min.js"></script>
<script src="http://www.localhost/assets/js/app.min.js"></script>

The address of the aquivos on localhost is:

localhost/panamerico

and the calls are not showing the folder "panamerico".

  • Configure your script by passing the directory 'panamerico'

1 answer

0


If the files are in the same folder as your main html, you can call the file folder name and the file name. Example<link rel="nome_da_pasta/nome_arquivo>"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.