简体   繁体   English

Wordpress图片网址中的端口号

[英]Port Number in Wordpress images URL

I am using Wordpress on my local machine, but I am stuck due to a strange problem. 我在本地计算机上使用Wordpress,但是由于一个奇怪的问题而被卡住。 The URL for each of my images is showing a port number: 我的每个图像的URL都显示一个端口号:

http://localhost:81/sitename/wp-content/uploads/2013/02/logo_dbl1.png

Because of this, Wordpress is showing a broken link rather than the image. 因此,Wordpress显示的是断开的链接,而不是图像。 When I try to upload them, it shows a fake URL in the upload text box. 当我尝试上传它们时,它在上传文本框中显示了伪造的URL。

This is most likely because your General Blog Address in the wordpress setup is set to use port 81. Try going to 这很可能是因为您在wordpress设置中的“常规博客地址”设置为使用端口81。请尝试转到

Dashboard > Settings > General blog address

And making sure that it has the correct URL (or correct port if you're staying with localhost 并确保它具有正确的URL(或者,如果您使用localhost ,则具有正确的端口)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM