Windows Server: 404 - File or directory not found at setup

Hi all,

My hosting is at GoDaddy ( I don’t know if it’s familiar for you) and windows hosting.
MCrypt is enabled and verified using phpinfo.php.

I copied the files to a subdomain but when i want to enter it is showing the error “404 - File or directory not found”

At the root of the subdomain folder I already changed the .htaccess file to:

# Remove index.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

I hope someone can help me.


Please remove this line. It’s only useful for sub-directories, not subdomains.

I did now but it’s still the same problem.

Kind regards

After some searching I found that on a Windows hosting it should be a web.config instead of .htaccess?
When I convert the htaccess file to a web.config it shows me following error 500 - Internal server error (instead of the 404).

Oh, sorry. Didn’t read that.
I’m not familiar with Windows hosting so I’m not able to help you with this…


I see that you have 2 options available

  1. Ask your hosting provider for assistance via their customer support - I’m sure that they could help you.
  2. Ask you hosting provider to move your hosting over a Linux based environment. (I’m not sure of the repercussions this might have on anything else you might be hosting so proceed on this with caution)

Apologies that we are unable to help you with this issue at the moment.

I had same problem and i put web.config with

            <rule name="RewriteHTML">
              <match url="(.*)" />
                <conditions logicalGrouping="MatchAll">                     
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />                     
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />                 
                </conditions>                 <action type="Rewrite" url="{R:1}.html" />             

This solved my isue