I have just setup moodle on Server 2008 R2 with IIS 7, PHP, and Mysql. I now have moodle working nearlly the way that i want it to but i am having problems with accessing files that i have uploaded.

When i upload a file it goes on to the server without any complications when i try to access the file it puts me to the following link:

'this is an example of one of the files i am trying to open'


and i get a Server Error

404 - File or directory not found.

but if i go to Site Administration / Server / HTTP and turn off 'Use slash arguments' i can access the file but it gives me the following link


does anybody know how i could setup a URL Rewrite rule to correct this problem? If you need more details just ask.