When I type in my domain name like without the www
(like http://example.com
), it doesn\'t work and gives error message. However, when I add the
You need to change any full urls to paths. If your php include or other processes are linked using urls, it will only work one way.
$.ajax(
{
url:'/LAYOUT/process.php'
}
as oppose to the full url
$.ajax(
{
url:'https://www.yourdomain.com/LAYOUT/process.php'
}
Using a simple path will allow it to work both ways with or without www.