htaccess无法加载vegas幻灯片登录背景

时间:2019-03-14 05:25:51

标签: javascript php jquery css .htaccess

修改.htaccess以便将http重定向到https后,我在后台登录时遇到了无法加载的问题。

这是我的.htaccess:

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

这是我的拉斯维加斯幻灯片登录背景:

<script src="http://zeptojs.com/zepto.min.js"></script>
<script src="{{asset('admin/assets/plugins/vegas/vegas.min.js') }}"></script>
<script>
    $("body").vegas({
        slides: [
            { src: "{{asset('admin/assets/images/login_background/5.jpg') }}" },
            { src: "{{asset('admin/assets/images/login_background/6.jpg') }}" },
            { src: "{{asset('admin/assets/images/login_background/7.jpg') }}" },
            { src: "{{asset('admin/assets/images/login_background/8.jpg') }}" }
        ],
        overlay: true
    });
</script>

请有人帮我解决我的问题。 谢谢

0 个答案:

没有答案