V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
readman
V2EX  ›  问与答

内外穿透+wordpress docker 遇到了史上最奇怪的问题

  •  
  •   readman · Mar 5, 2023 · 1241 views
    This topic created in 1151 days ago, the information mentioned may be changed or developed.
    形容一下:
    1. wordpress 在 localhost:8000,在 docker 中访问,没有任何问题.
    2. 各种浏览器的普通模式访问 localhost:8000,浏览器会自动跳回到 localhost, 但是访问 localhost:8000/index.html 后一切正常(包括访问其他网页)
    3. 各种浏览器的无痕模式访问 localhost:8000,一切网页正常.
    4. 没有开 ssl,就是普通的 http
    5. 没有写.htaccess.
    6. wp-config 的 home 和 siteurl 都是 http://localhost:8000/
    7. 已经清了缓存
    readman
        1
    readman  
    OP
       Mar 5, 2023
    # This file was updated by Duplicator on 2023-02-27 05:04:05.
    # See the original_files_ folder for the original source_site_htaccess file.
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5268 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 03:23 · PVG 11:23 · LAX 20:23 · JFK 23:23
    ♥ Do have faith in what you're doing.