Afternoon just a quick question. When i goto http://www.mywebsite.co.uk/index.php i see my site however when i do it without the www. i do not get it and i get a page cant be displayed. I also dont see my website if I go directly to my see ie (without the index.php) and it doesnt auto push forward. would i need to configure this on my domain registar site or code it ?( i thought it was automatic!0 many thanks in advanced. hope this makes sense. Sure its easy to someone who knows this.
You might have to add the mywebsite.co.uk domain (without the www) into the webserver. Basically, whichever software you're using as a web server (eg Apache, IIS etc.) will alow you to display different pages according to which domain name, or sub-domin the user has come in on, this would allow you to serve a different page (for example) to a French person who went to mywebsite.fr, and host everything on the same server. Because of this, some web servers will treat www.mywebsite.co.uk as being different to mywebsite.co.uk. Without knowing what web server software you're using I can't really tell you where in the config to look, but in IIS 7 it's called Alias's if I recall correctly. (web servers aren't really my forte I'm afraid, although I've had to fix this problem myself, a while ago)
DNS records and default index file It sounds like you need to configure 2 things, both of which should be pretty straight forward hopefully. It does depend on the host you use, whether you are running the server yourself etc etc. www. not working First of all, the www bit now working. That sounds like a DNS issue. All you need to do in the control panel for your domain name under dns is make sure that you have a CNAME record pointing towards your non-www domain name. If you have your hosting with a provider, this should be enough. If you have set up the server yourself, phuzz's comment about the website responding differently for different addresses comes into play potentially. For example: Note: DNS changes can take a while to apply, so a little patience is required. Flushing your DNS cache on your local computer will help you get the new DNS as soon as possible: Click Start Menu > Run Type CMD Press Enter Type "ipconfig /flushdns" and press ENTER index.php not working This sounds like you need to change your default directory page. If you are on an Apache-based web server, you could possibly do it with an .htaccess file. Create a plaintext file called ".htaccess" and type in the following: Upload the file to the root of your website, unless there is already one there in which case append this line to the end of it Being able to modify the behaviour of your website with .htaccess files is limited by what your web host allows you to do. Hope this might get you somewhere.
Or for IIS to get index.php working you need to add the file name to the Default Documents, it changes for the different versions of IIS but here's IIS7 http://learn.iis.net/page.aspx/203/default-documents/
Often you can use the wild card '*' when setting up the web server to avoid having to specify complete domain names. That is with *.mywebsite.co.uk set you could access the web site as www.mywebsite.co.uk or mywebsite.co.uk or blah.mywebsite.co.uk for that matter and it'd all point to the same site.