du67560 2017-02-24 10:19 采纳率: 0%
浏览 34
已采纳

不要在laravel5.3的项目中使用管理面板和授权

I make admin-panel at laravel 5.3. I try to install sleepingowl 4. All project I make according to the official documentation.All project operate as expected (http://blog.laravel/). But...if I go the link

 http://blog.laravel/admin

than apache issues :

 Not Found

 The requested URL /admin was not found on this server.

After I try to use authorization. I make new project which named "auth". But ... if I go the link:

 http://auth/signup 

apache issues too...:

 Not Found

 The requested URL /signup was not found on this server.

All rights are open to write-rewrite. All my steps according of the oficcial documentation :

 https://laravel.com/docs/5.3/installation

I don't know what I doing wrong. Please, tell me what can I do

There are the links of github:

 https://github.com/AlexBukreyev/blog.laravel  - this is my project, where I make admin-panel.

 https://github.com/AlexBukreyev/auth  -  this is project of authorization

 file public /.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]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
  • 写回答

2条回答 默认 最新

  • dpii73380 2017-03-22 09:43
    关注

    It turned out, it was in the settings of the Apache! You need to connect mod_rewrite through the console:

      apache2ctl -M | grep -i rew
      sudo a2enmod rewrite
      sudo /etc/init.d/apache2 restart
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line