
|
View Full Version : Custom error pages on IIS6
csc2ya 11-30-2008, 07:59 PM Custom error pages on IIS6
My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
__________________
Craig Turner
Former Chief Operations OfficerWavnetworks Webhosting is no longer in business
Last edited by csc2ya : 11-30-2008 at 07:10 PM.
csc2ya 11-30-2008, 07:59 PM Custom error pages on IIS6
My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
__________________
Craig Turner
Former Chief Operations OfficerWavnetworks Webhosting is no longer in business
Last edited by csc2ya : 11-30-2008 at 07:10 PM.
biggerboy 11-30-2008, 08:29 PM Quote:
Originally Posted by csc2ya
My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
The reason the .htaccess doesn't work is because .htaccess is for apache webservers and those similar to apache, not for IIS. There has to be a way to do it.
Try this: http://www.microsoft.com/technet/pro....mspx?mfr=true
biggerboy 11-30-2008, 08:29 PM Quote:
Originally Posted by csc2ya
My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
The reason the .htaccess doesn't work is because .htaccess is for apache webservers and those similar to apache, not for IIS. There has to be a way to do it.
Try this: http://www.microsoft.com/technet/pro....mspx?mfr=true
csc2ya 11-30-2008, 08:59 PM My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
csc2ya 11-30-2008, 08:59 PM My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
csc2ya 11-30-2008, 09:07 PM Thanks for that. That's what I found when I did a search earlier though. As I said, i'll have to get the person who owns the server to set it up, as i've only got ftp access to my own website directory on it.
__________________
Craig Turner
Former Chief Operations OfficerWavnetworks Webhosting is no longer in business
csc2ya 11-30-2008, 09:07 PM Thanks for that. That's what I found when I did a search earlier though. As I said, i'll have to get the person who owns the server to set it up, as i've only got ftp access to my own website directory on it.
__________________
Craig Turner
Former Chief Operations OfficerWavnetworks Webhosting is no longer in business
biggerboy 11-30-2008, 09:29 PM My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
The reason the .htaccess doesn't work is because .htaccess is for apache webservers and those similar to apache, not for IIS. There has to be a way to do it.
Try this: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/80cb8d8d-8fd8-4af5-bb3b-4d11fff3ab9c.mspx?mfr=true
biggerboy 11-30-2008, 09:29 PM My site is hosted on a friends server, which is in his office on a 24MB Business ADSL connection, and is running Server 2003 Enterprise.
I thought i'd try and set up custom error pages for my site last night, but for whatever reason, I can't get them working.
I did a test page with random text, and named it 404.htm.
I then did a file with the following in:
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /404.htm
I then renamed the file to .htaccess after uploading both of the files.
However, when I tried entering a non existant page url, the normal IIS 'page cannot be found' error came up.
In addition, the .htaccess file was still visible when I connected via ftp again.
Now I think of it, I can understand the file not ending up invisible, since files with a . in front are most commonly used on *nix OS's.
However, that wouldn't explain the error page not working.
Is there something I need to get the person who owns the server to do to get it working, or am I doing it completely the wrong way for a Windows machine?
Edit: oops....should have done a search before posting really.....I was doing it the wrong way, and I will need to get him to do it, as it needs setting up in the IIS config.
The reason the .htaccess doesn't work is because .htaccess is for apache webservers and those similar to apache, not for IIS. There has to be a way to do it.
Try this: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/80cb8d8d-8fd8-4af5-bb3b-4d11fff3ab9c.mspx?mfr=true
csc2ya 11-30-2008, 10:07 PM Thanks for that. That's what I found when I did a search earlier though. As I said, i'll have to get the person who owns the server to set it up, as i've only got ftp access to my own website directory on it.
csc2ya 11-30-2008, 10:07 PM Thanks for that. That's what I found when I did a search earlier though. As I said, i'll have to get the person who owns the server to set it up, as i've only got ftp access to my own website directory on it.
gearworx 12-04-2008, 02:06 AM You should consider installing isapi_rewrite3. Take a look here: http://www.helicontech.com/isapi_rew...patibility.htm
__________________Gearworx - Shared, Reseller, VPS Hosting Since 2000Linux or Windows? Why not both? Dual Platform Hosting (CF8, ASP, ASP.NET, PHP, MySQL 5, MSSQL 2k5).Private Label hosting powered by your own VPS servers.
gearworx 12-04-2008, 02:06 AM You should consider installing isapi_rewrite3. Take a look here: http://www.helicontech.com/isapi_rew...patibility.htm
__________________Gearworx - Shared, Reseller, VPS Hosting Since 2000Linux or Windows? Why not both? Dual Platform Hosting (CF8, ASP, ASP.NET, PHP, MySQL 5, MSSQL 2k5).Private Label hosting powered by your own VPS servers.
gearworx 12-04-2008, 03:06 AM You should consider installing isapi_rewrite3. Take a look here: http://www.helicontech.com/isapi_rewrite/doc/compatibility.htm
gearworx 12-04-2008, 03:06 AM You should consider installing isapi_rewrite3. Take a look here: http://www.helicontech.com/isapi_rewrite/doc/compatibility.htm
BKerry 12-04-2008, 04:58 PM You need to setup 404 pages through IIS, remember that these pages will ONLY work for static content (html, htm, etc). All other content (ASP, ASP.Net, PHP) will all require other custom error pages to be setup.
BKerry 12-04-2008, 04:58 PM You need to setup 404 pages through IIS, remember that these pages will ONLY work for static content (html, htm, etc). All other content (ASP, ASP.Net, PHP) will all require other custom error pages to be setup.
Motiv 12-23-2008, 11:48 PM You can use ISAPI Rewrite 3 (cost for license) and then use your .htaccess file with IIS - or you can just set the custom error page up under the properties of the website in IIS. A quick Google search will show you how to do that.
__________________
:: Professional Windows Server Support since 2001
:: Server Management, Migrations, and Related Technical Services
:: Enterprise Dedicated Hosting
:: www.windowshostingsupport.net
Motiv 12-23-2008, 11:48 PM You can use ISAPI Rewrite 3 (cost for license) and then use your .htaccess file with IIS - or you can just set the custom error page up under the properties of the website in IIS. A quick Google search will show you how to do that.
__________________
:: Professional Windows Server Support since 2001
:: Server Management, Migrations, and Related Technical Services
:: Enterprise Dedicated Hosting
:: www.windowshostingsupport.net
Motiv 12-24-2008, 12:48 AM You can use ISAPI Rewrite 3 (cost for license) and then use your .htaccess file with IIS - or you can just set the custom error page up under the properties of the website in IIS. A quick Google search will show you how to do that.
Motiv 12-24-2008, 12:48 AM You can use ISAPI Rewrite 3 (cost for license) and then use your .htaccess file with IIS - or you can just set the custom error page up under the properties of the website in IIS. A quick Google search will show you how to do that.
|