Wrong path when moving WP installation
-
When moving the WordPress installation using Duplicator (or any other plugin) these plugins replace the path to the installation with a new path.
For Example:
Old Path: https://abc.old-domain.com/mywordpress/
New Path: https://new-domain.com/These paths are stored in
SELECT option_value FROM 'wp_options' WHERE option_name = 'siteurl'
When I transfer the installation, the Favicon checker says:
Cannot find https://new-domain.com/mywordpress/wp-content/uploads/fbrfg/apple-touch-icon.png
The correct URL should be https://new-domain.com/wp-content/uploads/fbrfg/apple-touch-icon.png
Unfortunately Favicon by RealFaviconGenerator stores parts of the path in
SELECT * FROM 'wp_options' WHERE option_name = 'fbrfg_html_code'
There it says for example:
<link rel=”apple-touch-icon” sizes=”180×180″ href=”/mywordpress/wp-content/uploads/fbrfg/apple-touch-icon.png”>It would be great if the plugin only stores “/wp-content/uploads/fbrfg/apple-touch-icon.png” as href and reads the rest from option_name = ‘siteurl’ so that there are no problems when moving installations that are in a folder aboth the domain.
Otherwise it would be great if the whole path is stored in option_name = ‘fbrfg_html_code’ so that Duplicator can replace it during DB migration.
- The topic ‘Wrong path when moving WP installation’ is closed to new replies.