2

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

2
  • Is it a .NET application?
    – Portman
    May 8, 2009 at 13:23
  • unfortunately it's a plain html site. I've seen the customErrors of the web.config but that's not quite what I'm after May 8, 2009 at 13:41

4 Answers 4

1

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.

1
  • that's probably the closest thing to an answer I'm going to get I think. The solution itself isn't installed on the server, but it may help people looking for this in the future so I'm going to mark this as the answer May 9, 2009 at 22:40
2

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.

1
  • unfortunately the only access I have to the webserver is through ftp so I was looking for some form of file based method May 8, 2009 at 13:42
0

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.

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .