Page 1 of 1

.htaccess help !!!!

Posted: Sun Apr 02, 2006 6:59 pm
by d.shankar
hi all !

i need to create custom error documents for my site...

if any page is not available it must redirect to my customized error page instead of the same old " 404 page not found !"

to do this we need .htaccess file i have all things correctly in the file but it is not working..

this is my .htaccess file

ErrorDocument 404 http://www.2xceed.net/Error.php?404 Page Not Found !

Posted: Sun Apr 02, 2006 7:00 pm
by d.shankar
please some one help me frame out this problem ...

Advanced thanks

Posted: Sun Apr 02, 2006 11:59 pm
by Coditor
Does it redirect to anything at all?


Try this:

ErrorDocument 404 /Error.php?404%20Page%20Not%20Found%20!


Coditor

Posted: Mon Apr 03, 2006 12:02 am
by Shiv
Look at it. It might help u

http://lists.debian.org/debian-apache/2 ... 00173.html


or truncate your url to /Error.php?404

Posted: Mon Apr 03, 2006 5:33 am
by sanketce
Here is your solution.....

http://www.debianhelp.co.uk/customerrors.htm

Thanks

Sanket

Posted: Mon Apr 03, 2006 8:55 am
by d.shankar
Guys it didnt help out.. :( But thanks a lot of effort by u all

i asked the my domain administrator whether custome error messages can be set or not ?

he said they can be set and he told me to give the links for error messages like 404,500 etc..

so it is clear that .htaccess will work in my site .. but how to do it by myself ??

Each and every time i may not able to contact him... please help guys !!!

Posted: Mon Apr 03, 2006 8:54 pm
by sanketce
So your problem is seeming that you want to open a custom error page on a particular page request fails (#404) like if page is not found?

Posted: Tue Apr 04, 2006 3:32 am
by d.shankar
yeah that custom error thing is not working in my site.... :(


i dont know what to do ??

Posted: Tue Apr 04, 2006 5:24 am
by sanketce
I think your domain administrator will help you out in this case. 8)

Posted: Tue Apr 04, 2006 6:34 am
by d.shankar
hey sanket it is very difficult to contact him each and every time..

there must some way to fix this .htaccess thing...

i wonder why it is not working ???

Posted: Tue Apr 04, 2006 6:26 pm
by Shiv
Let me know that in htaccess other directives or instructions are working or not.

Posted: Tue Apr 04, 2006 8:53 pm
by sanketce
Can you post your some portion of your .htaccess fle?

Posted: Wed Apr 05, 2006 7:06 am
by d.shankar
sanketce wrote:Can you post your some portion of your .htaccess fle?
ErrorDocument 404 /Error.php?404%20Page%20Not%20Found%20!

Posted: Wed Apr 05, 2006 8:47 pm
by sanketce
This is correct written I couldn't find anything wrong in this.

Posted: Thu Apr 06, 2006 12:29 am
by d.shankar
hmm..

then i am unable to trace the problem !!!

u have any clue sanket ??

Posted: Thu Apr 06, 2006 2:59 am
by sanketce
You can do one thing, check your all APACHE settings now this is only one way is remaining.