最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Some resources of my website are pointing to www.mysite.comdev and trying to get rid of that append has been a headach

programmeradmin1浏览0评论

The problem:

I'm in the process of migrating a website to another server, so the maintainer of that page gave me the code and the database, so I could install it on my server. The problem is that for some reason I can't see some .css files or images loading because some of them point to www.mywebsite/dev/ instead of www.mywebsite/.

Solution I tried:

I read that there's a plugin called Velvet Blues Update URLs, I installed it and I tried to change the url like it says in the instructions but I get 0 results when I try to change the URL so it doesn't change anything. I just get the following text:

ERROR: Something may have gone wrong.   
Your URLs have not been updated.

Results 
0 Content Items (Posts, Pages, Custom Post Types, Revisions)
0 Excerpts
0 Links
0 Attachments
0 Custom Fields
0 GUIDs

I then go to the sql dump file of the database and search for that string myself and I do find the /dev/ in many of the links, however I find the lilnks like "/home/mywebsite/public_html/dev/wp-content/plugins/remove-query-strings-from-static-resources/remove-query-strings.php", I tried to copy and paste this database into the plugin for example and it also get the same error as before.

I don't want to change the links directly on the database because I have heard that it would create some problems. Any ideas about how to be able to get rid of the /dev/ append?

Thank you.

The problem:

I'm in the process of migrating a website to another server, so the maintainer of that page gave me the code and the database, so I could install it on my server. The problem is that for some reason I can't see some .css files or images loading because some of them point to www.mywebsite/dev/ instead of www.mywebsite/.

Solution I tried:

I read that there's a plugin called Velvet Blues Update URLs, I installed it and I tried to change the url like it says in the instructions but I get 0 results when I try to change the URL so it doesn't change anything. I just get the following text:

ERROR: Something may have gone wrong.   
Your URLs have not been updated.

Results 
0 Content Items (Posts, Pages, Custom Post Types, Revisions)
0 Excerpts
0 Links
0 Attachments
0 Custom Fields
0 GUIDs

I then go to the sql dump file of the database and search for that string myself and I do find the /dev/ in many of the links, however I find the lilnks like "/home/mywebsite/public_html/dev/wp-content/plugins/remove-query-strings-from-static-resources/remove-query-strings.php", I tried to copy and paste this database into the plugin for example and it also get the same error as before.

I don't want to change the links directly on the database because I have heard that it would create some problems. Any ideas about how to be able to get rid of the /dev/ append?

Thank you.

Share Improve this question edited Jul 15, 2019 at 20:04 VaTo asked Jul 12, 2019 at 22:00 VaToVaTo 235 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It seems that your software for finding URLs in the database does not find any matches, it might be worth double-checking it with some other method, please see my reply here Wrong domain in uploads folder for more details.

If the CSS file is one of your theme CSS files then most likely the CSS file URL is not stored in the database at all. I would advise checking your theme functions.php or header.php files, my guess is that either the CSS file URL is registered there (using wp_register_style()) function with the /dev/ path or loaded directly in the header.php.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论