• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Main Domain is redirecting to Sub Domain

PackerlandWebsites

New Pleskian
A client wanted his website on his own hosting provider, which uses Plesk (I normally use cPanel). His hosting provider had me set up the website on a subdomain (ie. www.test.domain.com). They stated that once I was done, they would transfer it to the main domain. I built the website with WordPress. They transferred the website, and now when you go to the main domain, it redirects to the subdomain. Which, we want the website on the main domain. The hosting provider claims that WordPress is causing the issues, but for some reason that just doesn't make sense. I've logged into Plesk, and I can't find anything that indicates that there is a redirect on the domain. Any suggestions are greatly appreciated.
 
Well, the problem seems to be with your WordPress account which was earlier on sub-domain.
All you have to do some settings in WordPress account. These settings can be adjusted directly in the WordPress admin dashboard from Settings>> General >> Fill in your WordPress Address and Site Address and click Save.
or you can make these modifications to your wp-config.php file as well.
Edit wp-config.php file
----
define('WP_HOME','http://domain.com');
define('WP_SITEURL','http://domain.com');
----
 
This makes total sense. I'll keep this in mind for future endeavors. I ended up removing WP from the sub-domain, and installing new on the main domain. Thanks for the suggestion! :)
 
Back
Top