9324290

9324290


已创建论坛回复

正在查看 10 个帖子:11-20 (共 21 个帖子)
  • 作者
    帖子
  • 9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

    只启用 Elementor 和 Elementor pro 插件,主题也是 hello Elementor

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

    现在用的就是:

    rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
    if (!-e $request_filename){
    rewrite ^.+?(/wp-.*) $1 last;
    rewrite ^.+?(/.*\.php)$ $1 last;
    rewrite ^ /index.php last;
    }

    用了#37173楼的伪静态规则,媒体库上传图片不显示,且打开图片链接 404(子站点有自定义上传路径);

    用了论坛的伪静态规则,媒体库的图片和图片链接能正常显示了,但是Elementor编辑器无法打开;

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

    保留了 Elementor  和 Elementor Pro ,还是无法打开。

    我觉得是伪静态的问题,因为我用了一个伪静态规则(在#37173)可以正常打开Elementor编辑器,但是上传媒体库无法正常显示。

    所有我想,能不能麻烦一下把两个伪静态规则合并优化看看😄

    现在用的论坛伪静态

    rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
    if (!-e $request_filename){
    rewrite ^.+?(/wp-.*) $1 last;
    rewrite ^.+?(/.*\.php)$ $1 last;
    rewrite ^ /index.php last;
    }

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主
    
    ### wp-core ###
    
    version: 5.5.1
    site_language: zh_CN
    user_language: zh_CN
    timezone: Asia/Shanghai
    permalink: /%category%/%year%%monthnum%%day%%post_id%
    https_status: true
    multisite: true
    user_registration: false
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 10
    site_count: 2
    network_count: 1
    dotorg_communication: true
    
    ### wp-active-theme ###
    
    name: Hello Elementor(hello-elementor)
    version: 2.3.0
    author: Elementor 团队
    author_website: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    parent_theme: none
    theme_features: core-block-patterns, menus, post-thumbnails, automatic-feed-links, title-tag, html5, custom-logo, editor-style, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider
    theme_path: /home/wwwroot/www/domain/dorr.cn/web/wp-content/themes/hello-elementor
    
    ### wp-themes-inactive (4) ###
    
    Astra: version: 2.5.5, author: Brainstorm Force
    B2: version: 2.4.8, author: Li Ruchun
    Dorr: version: 0.1.5, author: 子主题模版
    WebStacks PRO: version: 2.0406, author: iowen
    
    ### wp-plugins-active (6) ###
    
    Elementor: version: 3.0.10, author: Elementor.com
    Elementor Pro: version: 3.0.5, author: Elementor.com
    WordPress Multisite User Sync/Unsync: version: 1.2.0, author: Obtain Infotech
    WPJAM BASIC: version: 4.4.3, author: Denis
    WPJAM 分类管理: version: 3.1, author: Denis
    简数数据采集和发布平台: version: 2.4.4, author: keydatas
    
    ### wp-plugins-inactive (8) ###
    
    Content Aware Sidebars: version: 3.13, author: Joachim Jensen - DEV Institute
    JWT Authentication for WP-API: version: 1.2.6, author: Enrique Chavez
    Post Type Switcher: version: 3.2.0, author: John James Jacoby
    Starter Templates: version: 2.3.6, author: Brainstorm Force
    TFPosts Addon For Elementor: version: 1.0.1, author: Themesflat
    Ultimate Addons for Gutenberg: version: 1.17.0, author: Brainstorm Force
    WPForms Lite: version: 1.6.2.3, author: WPForms
    wphave - Admin: version: 2.2, author: Martin Jost
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1800
    imagemagick_version: ImageMagick 7.0.8-15 Q16 x86_64 2020-04-13 https://imagemagick.org
    file_uploads: File uploads is turned off
    post_max_size: 20M
    upload_max_filesize: 20M
    max_effective_size: 20 MB
    max_file_uploads: 10
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 15 GB
    imagick::RESOURCETYPE_DISK: -1
    imagick::RESOURCETYPE_FILE: 38400
    imagick::RESOURCETYPE_MAP: 15 GB
    imagick::RESOURCETYPE_MEMORY: 8 GB
    imagick::RESOURCETYPE_THREAD: 2
    gd_version: bundled (2.1.0 compatible)
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Linux 3.10.0-957.5.1.el7.x86_64 x86_64
    httpd_software: nginx/1.12.2
    php_version: 7.3.21 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 20
    memory_limit: 115M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 20M
    php_post_max_size: 20M
    curl_version: 7.29.0 NSS/3.36
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.27
    client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/wwwroot/www/domain/dorr.cn/web/wp-content
    WP_PLUGIN_DIR: /home/wwwroot/www/domain/dorr.cn/web/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    

    这个是子站点的信息。

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主
    
    ### wp-core ###
    
    version: 5.5.1
    site_language: zh_CN
    user_language: zh_CN
    timezone: Asia/Shanghai
    permalink: /%category%/%year%%monthnum%%day%%post_id%
    https_status: true
    multisite: true
    user_registration: false
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 10
    site_count: 2
    network_count: 1
    dotorg_communication: true
    
    ### wp-active-theme ###
    
    name: Hello Elementor(hello-elementor)
    version: 2.3.0
    author: Elementor 团队
    author_website: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    parent_theme: none
    theme_features: core-block-patterns, menus, post-thumbnails, automatic-feed-links, title-tag, html5, custom-logo, editor-style, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider
    theme_path: /home/wwwroot/www/domain/dorr.cn/web/wp-content/themes/hello-elementor
    
    ### wp-themes-inactive (4) ###
    
    Astra: version: 2.5.5, author: Brainstorm Force
    B2: version: 2.4.8, author: Li Ruchun
    Dorr: version: 0.1.5, author: 子主题模版
    WebStacks PRO: version: 2.0406, author: iowen
    
    ### wp-plugins-active (6) ###
    
    Elementor: version: 3.0.10, author: Elementor.com
    Elementor Pro: version: 3.0.5, author: Elementor.com
    WordPress Multisite User Sync/Unsync: version: 1.2.0, author: Obtain Infotech
    WPJAM BASIC: version: 4.4.3, author: Denis
    WPJAM 分类管理: version: 3.1, author: Denis
    简数数据采集和发布平台: version: 2.4.4, author: keydatas
    
    ### wp-plugins-inactive (8) ###
    
    Content Aware Sidebars: version: 3.13, author: Joachim Jensen - DEV Institute
    JWT Authentication for WP-API: version: 1.2.6, author: Enrique Chavez
    Post Type Switcher: version: 3.2.0, author: John James Jacoby
    Starter Templates: version: 2.3.6, author: Brainstorm Force
    TFPosts Addon For Elementor: version: 1.0.1, author: Themesflat
    Ultimate Addons for Gutenberg: version: 1.17.0, author: Brainstorm Force
    WPForms Lite: version: 1.6.2.3, author: WPForms
    wphave - Admin: version: 2.2, author: Martin Jost
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1800
    imagemagick_version: ImageMagick 7.0.8-15 Q16 x86_64 2020-04-13 https://imagemagick.org
    file_uploads: File uploads is turned off
    post_max_size: 20M
    upload_max_filesize: 20M
    max_effective_size: 20 MB
    max_file_uploads: 10
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 15 GB
    imagick::RESOURCETYPE_DISK: -1
    imagick::RESOURCETYPE_FILE: 38400
    imagick::RESOURCETYPE_MAP: 15 GB
    imagick::RESOURCETYPE_MEMORY: 8 GB
    imagick::RESOURCETYPE_THREAD: 2
    gd_version: bundled (2.1.0 compatible)
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Linux 3.10.0-957.5.1.el7.x86_64 x86_64
    httpd_software: nginx/1.12.2
    php_version: 7.3.21 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 20
    memory_limit: 115M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 20M
    php_post_max_size: 20M
    curl_version: 7.29.0 NSS/3.36
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.27
    client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/wwwroot/www/domain/dorr.cn/web/wp-content
    WP_PLUGIN_DIR: /home/wwwroot/www/domain/dorr.cn/web/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    

     

    这个是子站点的信息。

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

    贴了我刚才百度的那个伪静态后,elementor编辑器可以打开了,但是上传媒体库的文件无法正常显示。

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

    #ignored: “-” thing used or unknown variable in regex/rew
    rewrite ^/([_0-9a-zA-Z-]+/)?wp-admin$ /$1wp-admin/ permanent;
    if (-f $request_filename){
    set $rule_2 1;
    }
    if (-d $request_filename){
    set $rule_2 1;
    }
    if ($rule_2 = “1”){
    #ignored: “-” thing used or unknown variable in regex/rew
    }
    rewrite ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /$2 last;
    rewrite ^/([_0-9a-zA-Z-]+/)?(.*.php)$ /$2 last;
    rewrite /. /index.php last;

    使用了这个伪静态后,可以正常打开,不过想让你帮我看一下这个伪静态怎么样?

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

    用的就是咱们论坛的伪静态呢,还是想找个好的伪静态。

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

    试了一下,并不是。

    不过看到有个链接404:/news/wp-json/elementor/v1/globals

    不知道啥问题。

    9324290
    参与者
    • 文章数量: 26
    @9324290
    楼主

     

    /news/wp-json/elementor/v1/globals

    看到有个路径404,但是我在网站文件里没找到这个 wp-json ,想问下这个在哪里,我复制一份到根目录试一下。

正在查看 10 个帖子:11-20 (共 21 个帖子)

收藏纪念品


有奖活动

参与论坛社区问答,有机会获赠文派瓦普(Wapuu.com)手办模型。