Apache https和http上的Angularjs

Apache https和http上的Angularjs,apache,angularjs,.htaccess,Apache,Angularjs,.htaccess,我尝试了不同的方法,只在https上创建服务器的登录页面,并使用http创建应用程序的其余部分,但没有成功 版本:1.2.14 Web服务器:Apache2.2 我尝试了以下方法: 删除#并使其成为漂亮的url,但这不起作用。尝试将locationprovider html5 enable添加到true,并在.htaccess中添加了重写规则 在apache中尝试了不同的rewritecond和rewriterule来识别登录模式并重定向到https,但没有成功 注意:我的登录url开始如下:

我尝试了不同的方法,只在https上创建服务器的登录页面,并使用http创建应用程序的其余部分,但没有成功

版本:1.2.14 Web服务器:Apache2.2

我尝试了以下方法:

  • 删除#并使其成为漂亮的url,但这不起作用。尝试将locationprovider html5 enable添加到true,并在.htaccess中添加了重写规则

  • 在apache中尝试了不同的rewritecond和rewriterule来识别登录模式并重定向到https,但没有成功

  • 注意:我的登录url开始如下:

    谢谢

    启用

    locationProvider.HTML5mode(true);
    
    将以下内容放在index.html文件的顶部:

    <html ng-app="app">
    <head>
     <base href="http://www.domain/#/" />
    

    这对我的场景没有帮助,因为我需要https中的一些页面集,而http上的其他页面集。任何人都可以提供帮助。
    <html ng-app="app">
    <head>
     <base href="http://www.domain/#/" />
    
    RewriteEngine on
    RewriteBase /Projects/www
    # Don't rewrite files or directories
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    
    # Rewrite everything else to index.html to allow html5 state links
    RewriteRule ^ index.html [L]