...

View Full Version : 404 error redirecting with .htaccess



sreejithpm
09-30-2010, 06:23 AM
Hi,

I have trying to redirect to customized page when 404 error occurred using .htaccess. But the error showing as

Not Found

The requested URL /www/mysite/home1.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


The statements wrote in .htaccess is given below

Options +FollowSymLinks
RewriteEngine on

ErrorDocument 404 /errorpage.php


please go through the code & let me know whats wrong with the code or give me a solution for this problem.

Advance Thanks

abduraooft
09-30-2010, 10:03 AM
please go through the code & let me know whats wrong with the code or give me a solution for this problem. The statement is okay. Let me ask, what's wrong at your end?

sreejithpm
10-01-2010, 05:54 AM
But if a page is not present in the directory then showing an error which is given below instead of redirecting.....

Not Found

The requested URL /www/mysite/home1.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum