Laravel URL重写错误

时间:2017-05-19 13:01:15

标签: php laravel .htaccess laravel-5

实际上我正在部署客户端服务器上的laravel 5 Application。 我的客户在这种类型的路径中为我创造空间。

var/www/html/abcproject

现在我已将我的所有laravel 5文件上传到abcproject目录。

我的问题是,我的主页工作正常,但我的内部页面 给出未找到错误。

假设我尝试登录时抛出此错误。

  

未找到

     

在此服务器上找不到请求的网址/abcproject/login

如何解决该错误?

1 个答案:

答案 0 :(得分:1)

您需要将webroot指向<button class="btn form-control cayena-color-picker" btnCheckbox [popover]="myPopover" [ngClass]="selectedColor == null ? 'btn-default btn-fill' : selectedColor"> </button> <popover-content #myPopover title="Selector de colores" [closeOnClickOutside]="true"> <div class="color-palette blue1" (click)="setColor('blue1')" style="cursor:pointer"></div> <div class="color-palette blue2" (click)="setColor('blue2')" style="cursor:pointer"></div> <div class="color-palette blue3" (click)="setColor('blue3')" style="cursor:pointer"></div> <div class="color-palette yellow1" (click)="setColor('yellow1')" style="cursor:pointer"></div> <div class="color-palette yellow2" (click)="setColor('yellow2')" style="cursor:pointer"></div> <div class="color-palette yellow3" (click)="setColor('yellow3')" style="cursor:pointer"></div> <br> <div class="color-palette red1" (click)="setColor('red1')" style="cursor:pointer"></div> <div class="color-palette red2" (click)="setColor('red2')" style="cursor:pointer"></div> <div class="color-palette red3" (click)="setColor('red3')" style="cursor:pointer"></div> <div class="color-palette green1" (click)="setColor('green1')" style="cursor:pointer"></div> <div class="color-palette green2" (click)="setColor('green2')" style="cursor:pointer"></div> <div class="color-palette green3" (click)="setColor('green3')" style="cursor:pointer"></div> <br> <div class="color-palette gray1" (click)="setColor('gray1')" style="cursor:pointer"></div> <div class="color-palette gray2" (click)="setColor('gray2')" style="cursor:pointer"></div> <div class="color-palette gray3" (click)="setColor('gray3')" style="cursor:pointer"></div> <div class="color-palette violet1" (click)="setColor('violet1')" style="cursor:pointer"></div> <div class="color-palette violet2" (click)="setColor('violet2')" style="cursor:pointer"></div> <div class="color-palette violet3" (click)="setColor('violet3')" style="cursor:pointer"></div> </popover-content>