themistral Posted August 19, 2011 Share Posted August 19, 2011 Hi guys, I think there might be a problem with the server setup on a website hosted on IIS that I am working on. The www version of the website shows up just fine, but the non-www version goes to a standard browser 404 page. Could this be to do with the way the hosts have setup the domain/hosting? I would normally expect the non-www version to be the same as the www version if there are no redirects in place. Thanks in advance for your help! Quote Link to comment https://forums.phpfreaks.com/topic/245184-non-www-goes-to-404/ Share on other sites More sharing options...
Doug G Posted August 19, 2011 Share Posted August 19, 2011 I would normally expect the non-www version to be the same as the www version if there are no redirects in place.Why? www.example.tld and example.tld are two different url's. If you want both to work for the same website you'll need some kind of rewrite or redirect, in apache you'd probably use mod_rewrite. Quote Link to comment https://forums.phpfreaks.com/topic/245184-non-www-goes-to-404/#findComment-1259594 Share on other sites More sharing options...
requinix Posted August 19, 2011 Share Posted August 19, 2011 Are you sure it's a 404 page? Not a "can't find the server" or "can't connect to the server"? There's a very big difference between them. Quote Link to comment https://forums.phpfreaks.com/topic/245184-non-www-goes-to-404/#findComment-1259600 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.