V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
readman
V2EX  ›  问与答

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

  •  
  •   readman · 2023-03-05 15:45:56 +08:00 · 569 次点击
    这是一个创建于 416 天前的主题,其中的信息可能已经有所发展或是发生改变。
    形容一下:
    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
       2023-03-05 15:47:44 +08:00
    # 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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5851 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 06:12 · PVG 14:12 · LAX 23:12 · JFK 02:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.