更改Wordpress图像URL [英] Change Wordpress Image URL
问题描述
我使用Google Chrome检查了图像,并看到它们都显示如下: / p>
< img src =http://firouzeh.co.uk/frouzeh/frouzeh/wp-content/uploads/sites /3/2013/04/Granulated-Persepolis-Ring-230x160.jpg\">
路径中有一个文件名重复,并使图像正常工作我需要路径看起来像这样:
< img src =http://firouzeh.co.uk/frouzeh/wp-内容/上传/位点/二千零十三分之三/ 04 /造粒-波利斯 - 环 - 230x160.jpg>
我已经通过数据库搜索,找不到在哪里更改我的图片的路径,具体来说我认为必须有一个地方指引一切到www.firouzeh.co.uk/frouzeh,它应该只是发送到www.firouzeh.co.uk。
有谁知道在哪里改变路径?
如果您的URL设置在设置>常规下正确,那么您可以尝试使用搜索和替换插件来更新数据库中的每一次事件。
http://wordpress.org/plugins/search-and-replace/
搜索firouzeh.co.uk/ frouzeh / frouzeh
将其替换为firouzeh.co.uk/frouzeh
首先备份您的网站:)
如果你只是从另一个位置移动你的网站,我建议使用Duplicator插件,它处理所有的repl acing。
http://wordpress.org/plugins/duplicator /
On my wordpress site all my images are showing up as broken links. They are also showing up as broken links in the media gallery in the wordpress backend.
I inspected the images using Google chrome and saw that they all show up like this:
<img src="http://firouzeh.co.uk/frouzeh/frouzeh/wp-content/uploads/sites/3/2013/04/Granulated-Persepolis-Ring-230x160.jpg">
there is a duplication of a file name in the path and to get the images to work I need the path to look like this:
<img src="http://firouzeh.co.uk/frouzeh/wp-content/uploads/sites/3/2013/04/Granulated-Persepolis-Ring-230x160.jpg">
I have searched through the database and cannot find where to change the path to my images, specifically I think there must be a field somewhere that is directing everything to www.firouzeh.co.uk/frouzeh where it should just be sending it to www.firouzeh.co.uk.
Does anyone know where to change the path?
If your URL settings are correct under Settings > General, then you could try using a Search and Replace plugin to update every occurrence in your database.
http://wordpress.org/plugins/search-and-replace/
Search for firouzeh.co.uk/frouzeh/frouzeh Replace it with firouzeh.co.uk/frouzeh
Back up your site first :)
If you did just move your site from another location, I suggest using the Duplicator plugin, which handles all of the replacing.
http://wordpress.org/plugins/duplicator/
这篇关于更改Wordpress图像URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!