修改css后出现500内部服务器错误



我用laravel建立了一个网站,Vuejs是我昨天做的新网站,我已经把他放到了域名上。经过漫长的一天(战争(,我找到了谁正确上传了我的文件,并修改了.htaccess,使其工作正常。

但我有一个小更新我的项目只有css!

所以我在服务器上删除了我的网站并上传了新网站,但现在我收到了一个错误:(

所以在网站上我得到了:

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

现在我的日志服务器错误是:

[Wed Mar 25 16:55:59 2020] [alert] [client 2a01:cb15:fe:8100:d6c:1aa0:83e3:13ca] [host www.mywebsite.com] /homez.964/rolletrade/www/.htaccess: </IfModule> without matching <IfModule> section
[Wed Mar 25 16:55:59 2020] [alert] [client 2a01:cb15:fe:8100:d6c:1aa0:83e3:13ca] [host www.mywebsite.com] /homez.964/rolletrade/www/.htaccess: </IfModule> without matching <IfModule> section

那么我在做什么呢?我有权利所有的步骤,时间在起作用,所以我做了同样的事情,但没有起作用。。

1:删除filezilla主文件夹"www"中的所有项目2:我进入我的项目,将所有文件放在"www"中的文件夹"public"中3:(删除public(现在index.php编辑和修改两条对齐线,并添加"myproject"DIR__。'/monProjet/vender/autoload.php’;4:完成

我在.htaccess上尝试了很多思考,但我没有找到:(

谢谢你的帮助,我有一个问题,可能是我在我的项目/公共中的问题,在上传之前我没有.hta访问权限。那么是什么时候创建的呢?

Ir第一次的代码正在工作(我也这么做(index.php

/*** Laravel - A PHP Framework For Web Artisans
*
* @package  Laravel
* @author   Taylor Otwell <taylor@laravel.com>
*/
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels great to relax.
|
*/
require __DIR__.'/myProject/vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/myProject/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(IlluminateContractsHttpKernel::class);
$response = $kernel->handle(
$request = IlluminateHttpRequest::capture()
);
$response->send();
$kernel->terminate($request, $response);

.htaccess:

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L] e</IfModule>

在您的www/.htaccess中,更改

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

带有

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

所以我真的不知道我重试了一千次之后发生了什么。

我只是把所有的文件都放在主文件中,让我的文件夹"myProject"也放在主文件夹中。就像每次一样。但这是工作。。。所以我不明白怎么回事。

感谢的帮助

最新更新