外部样式表和js文件未在服务器中链接

时间:2017-02-26 15:42:31

标签: php laravel laravel-5 server

我有一个在<layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:bind="http://schemas.android.com/apk/res-auto" > ..... <com.makeramen.roundedimageview.RoundedImageView android:id="@+id/fragment_detail_image_post" android:layout_width="match_parent" android:layout_height="match_parent" android:adjustViewBounds="true" android:scaleType="centerCrop" bind:src="@{viewModel.image}" app:layout_collapseMode="parallax" bind:setContext="@{viewModel.context}" /> ..... </layout> @BindingAdapter({"bind:loadUrl"}) public static void downloadImage(RoundedImageViewimageView, String url) { if (url != null) { Picasso.with(imageView.getContext()).load(url).into(imageView); } else { imageView.setImageResource(R.mipmap.ic_launcher); } } bootstrap开发的网站我尝试将其上传到laravel 5.0进行测试,然后才能在我的域名上发布。我已将其上传到服务器上,但000webhost.comstylesheet文件未正确链接。

我在实际档案中有这个

js

我使用了<link rel="stylesheet" href="{{asset('css/animate.css')}}"> <!--animate.js--> <link rel="stylesheet" href="{{asset('css/coreStyleSheet.css')}}"> <!--Font Awesome--> <link rel="stylesheet" href=" {{asset('icon/fontAwesome/css/font-awesome.css')}}"> <!--customeJS--> <script src="{{asset('js/coreHomePage.js')}}"></script> <!--fullPage.js--> <link rel="stylesheet" href="{{asset('fullPage/jquery.fullpage.css')}}">

但是当我在000webhost中打开源文件时没有任何工作正常,就像这样

{{asset('source')}}

的.htaccess

 <link rel="stylesheet" href="https://devfairtex.000webhostapp.com/server.php/css/animate.css">
<!--animate.js-->
<link rel="stylesheet" href="https://devfairtex.000webhostapp.com/server.php/css/coreStyleSheet.css">
<!--Font Awesome-->
<link rel="stylesheet" href=" https://devfairtex.000webhostapp.com/server.php/icon/fontAwesome/css/font-awesome.css">
<!--customeJS-->
<script src="https://devfairtex.000webhostapp.com/server.php/js/coreHomePage.js"></script>

1 个答案:

答案 0 :(得分:0)

             选项-MultiViews     

RewriteEngine On

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

嘿从.htaccess文件中删除它。 :)