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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2009
    Posts
    186
    Thanks
    72
    Thanked 2 Times in 2 Posts

    .htaccess not working

    Hello. I have Apache web server installed on my computer and I am designing websites using PHP and SQL, and I would like a .htaccess file to redirect a user to a 404 page if an invalid URL is typed. I have my .htaccess file in the same directory as all the other files, this is what is contained in it:

    Code:
    ErrorDocument 404 /404.php
    However, that does not seem to be working. I think it may be a problem with Apache configuration file but nothing seems to be working. Help!

  • #2
    Regular Coder
    Join Date
    Jul 2009
    Posts
    186
    Thanks
    72
    Thanked 2 Times in 2 Posts
    Hello. BUMP. Can I get some sort of reply?

  • #3
    Regular Coder
    Join Date
    Jun 2010
    Posts
    132
    Thanks
    8
    Thanked 0 Times in 0 Posts
    I think You must enable .htaccess (I am not sure about it)
    and You might read http://httpd.apache.org/docs/1.3/howto/htaccess.html and also You may read http://ubuntuforums.org/showthread.php?t=243656 and http://www.webmasterworld.com/forum92/2593.htm

  • #4
    Regular Coder
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    29
    Thanked 1 Time in 1 Post


  •  

    Posting Permissions

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