Home » Htaccess Tools » Questions regarding htaccess » .htaccess and custom error pages
.htaccess and custom error pages [message #522] Sat, 05 August 2006 20:19 Go to next message
Nessnc  is currently offline Nessnc
Messages: 5
Registered: July 2006
I have successfully created my htaccess file, which seems to be working great with one exception. I have created a custom 401 error page that htaccess does re-route to, but the animated gif will not work properly.

I do see the place holder on the page for the gif as well as the alt text assigned to the gif. Just not the gif. What am I doing wrong?
.htaccess and custom error pages [message #532] Wed, 16 August 2006 13:32 Go to previous messageGo to next message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Use the full url to the error page in your .htaccess file:

ErrorDocument 401 http://yourdomain.com/401.html
.htaccess and custom error pages [message #536] Thu, 17 August 2006 01:21 Go to previous messageGo to next message
Nessnc  is currently offline Nessnc
Messages: 5
Registered: July 2006
That didn't work. Sad
.htaccess and custom error pages [message #537] Thu, 17 August 2006 11:50 Go to previous messageGo to next message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Then your img src on 401.html is incorrect.
.htaccess and custom error pages [message #538] Thu, 17 August 2006 12:48 Go to previous messageGo to next message
Nessnc  is currently offline Nessnc
Messages: 5
Registered: July 2006
I thought that at first as well. However, it loads the alt tag I put in each img. How can it see the alt tag, and creat an image outline on the page, but not the img?
.htaccess and custom error pages [message #540] Thu, 17 August 2006 12:53 Go to previous message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Nessnc

I thought that at first as well. However, it loads the alt tag I put in each img. How can it see the alt tag, and creat an image outline on the page, but not the img?


What?

If the images doesnt load when you go to http://yourdomain.com/401.html you have not used correct image paths.
Previous Topic:Allow from specific page only?
Next Topic:can you suggest an alternative to htaccess?
Goto Forum:
  


Current Time: Sat May 17 07:40:08 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software