[英]Laravel 4 Hybridauth Server not found
我已經在我的laravel 4.2。*安裝程序中安裝了hybridauth軟件包。 我正在運行MAMP。
我從以下示例中使用app / config / hybridauth.php和app / routes.php的代碼:
https://github.com/vohof/laravel-hybridauth
當我在Mozilla中打開URL http://localhost/auth/facebook/
時,這將導致Mozilla Firefox中出現“找不到服務器”頁面,並且URL從http://localhost/auth/facebook
更改為http://www.localhost.com/auth/facebook
在Safari中,沒有url-redirect,但顯示了白頁。 這些問題僅在Laravel 4.2。*中出現,而在Laravel 4.0.0中則沒有。 在Laravel 4.0.0中,我可以正確重定向到Twitter頁面。
有誰知道這是為什么以及這個問題從何而來?
任何幫助表示贊賞,羅馬
嘗試將其添加到公共目錄中的.htaccess
文件中
<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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.