Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: sharvps on August 12, 2017, 06:54:11 PM

Title: domain.com and www.domain.com are resolving to different pages
Post by: sharvps on August 12, 2017, 06:54:11 PM
hello
i want ask about the reason domain.com and www.domain.com are resolving to different pages.
i setup new server all good configured but domain.com and www.domain.com are resolving to different pages.
i use a lot of .htaccess configs but my problem is not resolved

my website on www.domain.com page working fine but when i put domain.com i get same page when i put ip of server
i get page with it work message

please help me

thanks 
Title: Re: domain.com and www.domain.com are resolving to different pages
Post by: darkness on August 20, 2017, 10:17:14 AM
Check your apache configuration and see where domain.com and www.domain.com are pointing. If they point to a different place edit the directory of domain.com to be the same as for www.domain.com. Save. Restart apache.