I have this problem as well. The meta box is displaying the WordPress Address (URL) as the redirect root, rather than the Site Address (URL), so it make the “SEO Redirect 301s” metabox kinda useless when WordPress is not run-in from the root directory ( see screenshot) .
Is there a way to correct this?
MMDeveloper, you’d touched on this issue in this thread, but didn’t address the problem.
Isn’t get_option(“siteurl”) the same as home_url(). It should be or am I completely wrong?
To answer the question, get_option(“siteurl”) and home_url() are only the same if you install WordPress in the root directory. If you choose to install it in a subdirectory called “site” or “wordpress” or whatever, then they are different.
From the WordPress Codex:
The site_url template tag retrieves the site url for the current site (where the WordPress core files reside) with the appropriate protocol, ‘https’ if is_ssl() and ‘http’ otherwise. If scheme is ‘http’ or ‘https’, is_ssl() is overridden. Use this to get the “WordPress address” as defined in general settings. Use home_url() to get the “site address” as defined in general settings.
Thanks,
Michael
I actually did a search and replace in the plugin’s php files replacing get_option(“siteurl”) with home_url(), and it seems to be working correctly on my subfolder installed site.
Perhaps you can test and do the same for a future release?
This also ends up putting the xml redirect list in the site root, which seems better, than in the e subdirectory.
-Michael