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

2023-03-05 15:45:56 +08:00
 readman
形容一下:
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. 已经清了缓存
573 次点击
所在节点    问与答
1 条回复
readman
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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/921298

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX