Thanks you two. It was the .htaccess file. I had previously found this file in the WP installation folder and removed the code from it but it didn’t resolve the issue. What I found is that there was another .htaccess file in a subdirectory, so I removed the code from there as well and now it’s running as it should.