为什么单击home wordpress时找不到404
形势 每次我点击下面的home(主页)按钮,我都会找到404(未找到),如下所示: 我不知道为什么会发生这种情况,但它似乎被重定向到远离端口:8080,但我已将wp_选项site_url和home_url设置为http://localhost:8080/wordpress 在phpAdmin内。我怎样才能解决这个问题 ====== 编辑: 单击“主页”按钮后在控制台中查看日志时的行为是:为什么单击home wordpress时找不到404,wordpress,http-status-code-404,Wordpress,Http Status Code 404,形势 每次我点击下面的home(主页)按钮,我都会找到404(未找到),如下所示: 我不知道为什么会发生这种情况,但它似乎被重定向到远离端口:8080,但我已将wp_选项site_url和home_url设置为http://localhost:8080/wordpress 在phpAdmin内。我怎样才能解决这个问题 ====== 编辑: 单击“主页”按钮后在控制台中查看日志时的行为是: Request URL: http://localhost:8080/wordpress/
Request URL: http://localhost:8080/wordpress/
Request Method: GET
Status Code: 301 Moved Permanently (from disk cache)
Remote Address: [::1]:8080
Referrer Policy: strict-origin-when-cross-origin
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Date: Wed, 03 Feb 2021 17:40:28 GMT
Location: http://localhost/wordpress/
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.4.13
X-Powered-By: PHP/7.4.13
X-Redirect-By: WordPress
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate, br
Accept-Language: en-ES,en-US;q=0.9,en;q=0.8
Connection: keep-alive
Cookie: wp-settings-1=mfold%3Do; wp-settings-time-1=1612439758; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7d02bf5d4e081af2908123233e7fb2e7=Kwsswart%7C1612681149%7C3lzaDUQayIVeJSHGTZiiOEF0IPOnAvdyMTTlSq6SP7Z%7C66c2a42cd2b27d342bd5a234fb1276e73122a06eb9761a76f336f26c5cea485e
Host: localhost
Referer: http://localhost:8080/
sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-site
Sec-Fetch-User: ?1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36
其次是:
Request URL: http://localhost/wordpress/
Request Method: GET
Status Code: 404 Not Found
Remote Address: [::1]:80
Referrer Policy: strict-origin-when-cross-origin
Connection: Keep-Alive
Content-Length: 196
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 05 Feb 2021 06:59:33 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.46 (Win64) PHP/7.4.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate, br
Accept-Language: en-ES,en-US;q=0.9,en;q=0.8
Connection: keep-alive
Cookie: wp-settings-1=mfold%3Do; wp-settings-time-1=1612439758; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_7d02bf5d4e081af2908123233e7fb2e7=Kwsswart%7C1612681149%7C3lzaDUQayIVeJSHGTZiiOEF0IPOnAvdyMTTlSq6SP7Z%7C66c2a42cd2b27d342bd5a234fb1276e73122a06eb9761a76f336f26c5cea485e
Host: localhost
Referer: http://localhost:8080/
sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-site
Sec-Fetch-User: ?1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
您仍然需要在端口8080下呼叫前端
localhost:8080/wordpress
编辑:
看看这里:themeisle.com/blog/install xampp和wordpress local我一直在使用,但当单击它时,它会自动重定向我,如何使用wordpress更改重定向路由?我已经为此挣扎了一段时间,它会把你引向哪里?对wordpress的行为进行更详细的描述从日志中添加了hehavior你说的
,但我已经将wp_选项站点和home_url设置为http://localhost:8080/wordpress 在phpAdmin内。
将数据库编辑更改回原始值。除非您确切知道自己在做什么,否则不应更改数据库值。然后尝试调用localhost:8080
如果我这样做,那么xampp找不到wordpress,xampp正在侦听端口8080,请共享您的wordpress地址(URL)
和站点地址(URL)
from settings->general in wp admin我添加了一张他们的照片,令人困惑的是我已经设置好了,我已经使用了它,它仍然不起作用你没有分享你的WordPress地址(URL)
和网址(URL)
from settings->general in wp admin