Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2008
    Location
    @ God's Own Country
    Posts
    57
    Thanks
    3
    Thanked 5 Times in 5 Posts

    Question 404 error redirecting with .htaccess

    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
    Last edited by sreejithpm; 09-30-2010 at 05:37 AM.
    ---
    By
    Sreejith.P.M

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Feb 2008
    Location
    @ God's Own Country
    Posts
    57
    Thanks
    3
    Thanked 5 Times in 5 Posts
    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.
    ---
    By
    Sreejith.P.M


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •