Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/249.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 服务器中未链接的外部样式表和js文件_Php_Laravel_Laravel 5_Server - Fatal编程技术网

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

Php 服务器中未链接的外部样式表和js文件,php,laravel,laravel-5,server,Php,Laravel,Laravel 5,Server,我在bootstrap和laravel 5.0中开发了一个网站,我正在尝试将其上传到000webhost.com,以便在我的域名上线之前进行测试。我已将其上载到服务器上,但样式表和js文件链接不正确 我的档案里有这个 <link rel="stylesheet" href="{{asset('css/animate.css')}}"> <!--animate.js--> <link rel="stylesheet" href="{{asset('css/coreSt

我在
bootstrap
laravel 5.0
中开发了一个网站,我正在尝试将其上传到
000webhost.com
,以便在我的域名上线之前进行测试。我已将其上载到服务器上,但
样式表
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')}}">
.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    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]
</IfModule>

选项-多视图
重新启动发动机
#重定向尾部斜杠。。。
重写规则^(.*)/$/$1[L,R=301]
#处理前控制器。。。
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^index.php[L]
选项-多视图

请将其从.htaccess文件中删除。:)

选项-多视图


请将其从.htaccess文件中删除。:)

这与css或javascript标记无关。请不要发送垃圾标签,只使用与特定代码问题相关的内容。mate@charlietfl抱歉。您的.htaccess文件是什么样子的!我已经编辑并添加了.htaccess文件。请看一看@Domdafontethaks。您的web根文件夹结构是什么样的?奇怪的是,你的URL显示server.php,这表明你将Laravel应用程序复制到web服务器的方式有些奇怪。这与css或javascript标记无关。请不要发送垃圾标签,只使用与特定代码问题相关的内容。mate@charlietfl抱歉。您的.htaccess文件是什么样子的!我已经编辑并添加了.htaccess文件。请看一看@Domdafontethaks。您的web根文件夹结构是什么样的?奇怪的是,您的URL显示server.php,这表明您将Laravel应用程序复制到web服务器的方式有些奇怪。
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    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]
</IfModule>
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]