我正在尝试使用HTTPs上的Angular-UI来服务Laravel 4路由。如果没有HTTPs,它可以工作,但同样会带来404错误。
谢谢你的帮助。
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>路由:
Route::get('index', array('as'=>'index','uses'=>'PagesController@getIndex'));Angular-UI
state('home', {
url: '/home',
templateUrl: 'index'
})发布于 2015-09-07 19:11:36
我已经找到了一个解决方案,我希望这能帮助到一些人。在linux上执行以下操作:
sudo leafpad etc/apache2/sites available/default-ssl
然后在该文件中编辑以下行AllowOverride None
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>至:
AllowOverride all谢谢你们所有人。
https://stackoverflow.com/questions/32411178
复制相似问题