小编Gar*_*eth的帖子

HTTPS和HTTP ExpressionEngine站点URL标记

我今天发现,如果您访问的EE站点在文档头中的css链接路径中使用{site_url}标记,则如果您键入https而不是http,则该站点无法加载CSS文件.

我已经通过使用htaccess文件来强制转到http,但我只是想知道EE中是否有一个设置可以更改以使两者都工作?

这只发生在Chrome和IE上,我猜你的浏览器设置取决于安全性.

expressionengine

8
推荐指数
3
解决办法
2849
查看次数

jQuery动画延迟添加类

我试图使用jquery延迟添加类.所有的代码工作正常,但我想延迟.addClass('hideText')直到悬停功能完成后有人告诉我该怎么做呢?

这是代码:

$(document).ready(function() {

$('.listing div').addClass('hideText');

$('.listing div').hover(

function() {
    $(this)
    .stop(true)
    .removeClass('hideText')
    .animate(
        {top: '0'},
        {duration: 300, easing: 'linear', queue: false}
    )
    },
    function() {
        $(this)
        .stop(true)
        .animate(
            {top: '150px'},
            {duration: 300, easing: 'linear', queue: false}
        )
        .addClass('hideText')
    });
Run Code Online (Sandbox Code Playgroud)

});

jquery animation

7
推荐指数
1
解决办法
588
查看次数

ExpressionEngine MSM网站上的htaccess

我使用MSM插件在两个不同的域名上运行两个ExpressionEngine站点.站点1包含所有系统文件等,站点2位于站点1的子文件夹中.我的问题是如何让网站二没有在URL中的index.php文件仍然有效?

目前我在我的网站一的htaccess文件夹中有这个,网站一个很好,网站二没有:

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Removes index.php
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]

    DirectoryIndex index.html index.php

    # Redirect non-www urls to www
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

    # If 404s, "No Input File" or every URL returns the same thing
    # make it /index.php?/$1 above (add the question mark)
Run Code Online (Sandbox Code Playgroud)

expressionengine

5
推荐指数
1
解决办法
636
查看次数

标签 统计

expressionengine ×2

animation ×1

jquery ×1