I have FTP access to a server and I'd like to have custom 404 pages. I don't have access to the management console or any admin rights on the server whatsoever.
I understand that apache can use .htaccess files to set custom errorDocuments for directories. Is there a similar way to do this in IIS6?
Cheers, Mat
You can access the IIS metabase through WMI or ADSI. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/4b976f46-3751-4f6b-ab68-5e19fa73a7b1.mspx?mfr=true
It looks like the CustomErrorDescriptions property contains the setting you want.
As far as I know, there is no way to configure custom http responses only via FTP file changes (on a standard IIS 6.0 installation).
It should be possible using 3rd party tools like IsapiRewrite, which is configured using a
httpd.ini
file in your web's root. We use it for filtering and URL redirecting, but I'm sure you could define rules for custom 404 pages too.Without having access to run commands on the server, you can't change the IIS settings.
One way to hack it is you can enable Metabase changes in the IIS server properties. This allows you to edit the Metabase.xml file. It would be a considerable security risk, but you can make the directory containing Metabase.xml available so you can download, edit, then reupload. Changes will take affect when IIS restarts. If you made IIS restart nightly, your changes are made. Like I said... a hack.
See: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a0ea8e51-fb2a-4e80-9d5a-7fe3ae246570.mspx?mfr=true
However, IIS7 has .htaccess-like features that you are looking for.
Unless you've already pursued this... one obvious solution is to ask your hosting provider if you can specify a custom 404 error page that points to a file you have FTP access to. If they don't have the facility in place via hosting control panel they might manually do it for you ask.
Else look at migrating to a hosting provider that offer custom error pages. This should be a standard option from most good hosting providers.