Subdomain links redirect to main domain
-
Hello I set up a subdomain using cPanel for my WordPress site. The home page for the subdomain looks fine, but whenever I click any of the links on the page or try to access the admin it redirects to the main domain. I copied all the files from the main public_html folder (minus the folder for my dev site), including the .htaccess. I also copied the database, and changed the wp-config.php file. I edited the database name, username, password, and added this as well..
define(‘WP_SITEURL’, ‘https://test.yoursite.com’);
define(‘WP_HOME’, ‘https://test.yoursite.com’);I also changed the database record for site_url and home in the wp_options table. I’ve been at this for hours and can’t figure it out. Here are the links to the dev site and the main one:
https://test.sigmakappachallenge.com/
https://sigmakappachallenge.com/Any help is greatly appreciated.
- The topic ‘Subdomain links redirect to main domain’ is closed to new replies.