我正在尝试使用Angular-UI over HTTPs来提供Laravel 4路由。没有HTTP它可以工作,但同样会带来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'));
角的UI
state('home', {
url: '/home',
templateUrl: 'index'
})
答案 0 :(得分:0)
我找到了解决方案,我希望这有助于某人。在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
谢谢大家。