dongshou1991 2014-07-22 22:15
浏览 32

找不到Laravel 4 Hybridauth服务器

I've installed the hybridauth package into my laravel 4.2.* setup. I'm running MAMP.

I'm using the code of app/config/hybridauth.php and app/routes.php from this example:

https://github.com/vohof/laravel-hybridauth

When I open the url http://localhost/auth/facebook/ in Mozilla, this leads to a 'Server not found' page in Mozilla Firefox and the url changes from http://localhost/auth/facebook to http://www.localhost.com/auth/facebook

in Safari there's no url-redirect but a white page is displayed. These problems only appear with Laravel 4.2.* BUT NOT with Laravel 4.0.0. In Laravel 4.0.0 I get a proper redirect to the twitter page.

Does anyone have a clue why this is and where this problem comes from?

Any help appreciated, Roman

  • 写回答

1条回答 默认 最新

  • drslez4322 2014-07-22 22:22
    关注

    Try adding this to your .htaccess file in the public directory

    <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>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄