OK, so i was working on a wordpress installation in a sub directory /test and using IP and username to access it.
I had made a few changes to get this to work.
So, now I have moved the whole install up to the root directory and gone into phpmyadmin and changed the details for the site url.
problem is, when i go to ipaddress/~user/wp-admin and login now it tries to redirect me a url that contains the /test in it.
I have checked all files for /test and also the database for /test but to no avail.
Any ideas would be greatly appreciated.