If there is no clear evidence of any present redirect from the following sources:
htaccess, both under the
public_html and under the
folder is the directory having all the wp files), removing and regenerating them by mean of updating the
.htaccess files were at some point deleted, and regenerated,
- The domain server, removing all possible redirects,
index.php files, which redirects calls where there are no files to serve,
Static Page is correctly configurated,
The options you have are:
- To Create a dumb home page
home.php or any similar flavoured choice, on the
- To seek for a plugin able to do that (Of course i skipped these step, in order not to increase even more the huge amount of manhours for solving this issue),
- To migrate/reinstall everything on the
The last choice, is by far the simpler and straighter.
By default, a fresh installation of WP leaves everything well configured on the
www.example.com folder. IF you install on a
wp or a
folder, you lost the pretty address, and risk a little uglier canonical url (
Check here, https://codex.wordpress.org/Moving_WordPress-, in particular, the section "If You Have Accidentally Changed your WordPress Site URL" which shows two 'hack' lines to reenter the modified folder.
Thus, when WP install to the same 'public_html', the
Canonical URL can then preserved to
www.example.com, and no duplicity is found.
For clarity the steps are:
folder is the directory for the WP installation,
- Edit the
.htaccess and change 'folder' with 'newfolder', if required,
Add the two lines on
wp-login.php (see the above guide!):
update_option('siteurl', 'http://www.example.com/newfolder' );
update_option('home', 'http://www.example.com/newfolder' );
http://www.example.com/newfolder/wp-admin. The update should be ready now.
And that's all. The migrated WP installation now starts directly at
www.example.com after the proper configuration of the