本文介绍了1and1中的“多项选择"错误页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我已经使用laravel完成了我的项目.我想在1and1上上传我的项目.我在1and1上将目录结构设置为"/directory",其中包含index.html文件,该文件链接到/directory/EngageV1/public/auth/login中的另一页.但是当我访问此页面时,我得到的错误页面为

I have done my project using laravel. I want to upload my project on 1and1. I set my directory structure on 1and1 is as '/directory' which contains index.html file which links to the other page in /directory/EngageV1/public/auth/login. but when I visits this page I am getting the error page as,

我的.htaccess文件看起来像

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

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

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

</IfModule>

如果输入url作为/directory/EngageV1/public/,那么它将显示我在route.php文件中为"/"设置的欢迎页面.只有此页面可以正常工作,我不知道该怎么办,请提出任何建议.

If enter url as /directory/EngageV1/public/ then it shows me the welcome page which I have set in routes.php file for route as '/'. Only this page works fine,I don't know what to do, Please give any suggestion.

推荐答案

public下的.htaccess文件中替换默认内容.包含以下内容的文件夹.

Replace default contents in your .htaccess file under your the publicfolder with the following.

RewriteBase /

Options +FollowSymLinks
RewriteEngine On

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

如果您仍然有问题,请查看此教程关于如何将Laravel Webapp部署到1and1

If you still have problems look at this tutorial about how to deploy a Laravel webapp to 1and1

这篇关于1and1中的“多项选择"错误页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 03:19