admin管理员组文章数量:1173655
I am running wordpress 6.0.3 under apache using the official docker container. I have a clean install with no themes or plugins added. The following gives me a 404:
curl http://localhost:8080/wp-content/themes/twentytwentytwo/style.css/?ver=1.2
# gives 404
However, without the query part of the URL, it works
curl http://localhost:8080/wp-content/themes/twentytwentytwo/style.css
# works
The only change I made to the official image was to make it stateless according to the instructions on the official docker image readme, so my Dockerfile is:
FROM wordpress:6.0.3-apache
WORKDIR /usr/src/wordpress
RUN set -eux; \
find /etc/apache2 -name '*.conf' -type f -exec sed -ri -e "s!/var/www/html!$PWD!g" -e "s!Directory /var/www/!Directory $PWD!g" '{}' +; \
cp -s wp-config-docker.php wp-config.php
Any idea why I'm getting 404 in this way? How might I debug?
本文标签: 404 errorGetting 404 when static files have quotverxyquot suffix
版权声明:本文标题:404 error - Getting 404 when static files have "?ver=x.y" suffix 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1737617024a1999004.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论