I have a WP 4.0 site that has been installed at:
It's been there for many years, so there are lots of links from around the web pointing to it.
As part of an overhaul I am doing, I would like the wordpress site to be accessible at the root URI: mydomain.com (and www.mydomain.com), without "/site" needing to be on there.
I found articles that told me about copying the index.php and .htaccess to the root, and changing the site URI in the wordpress settings. But the instructions I've come across always seem incomplete, as they seem to assume it's a new site with no existing links to deal with in order to avoid lots of 404 errors.
So the issue I now have is that the old links generate 404 errors (because they have "/site/" in them. Images also fail to display, as they are obviously stored in the DB with "/site/" in their URI.
I have been trying to figure out a failsafe way to use .htaccess rewrite rules to redirect everything (except, wp-admin, I suppose?) from /site to /
In case it's helpful, my existing permalink structure is
Any suggestions on the best way to go about this would be greatly appreciated. Thanks.