.htaccess, 404 Error problem, Godaddy, wordpress

Discussion in 'Apache' started by noshackles, Nov 15, 2006.

  1. #1
    I am using GoDaddy as a host. Apparantely I have to set the error page at the ISP level. There is a option that I can set to use a custom ERROR page. Now whenever a file does not exist it uses the custom ERROR page specified. Except for in my blog directory. The blog directory contains the wordpress install. Apparantley something in my .htaccess file is causing a problem. If I remove the .htaccess file it finds my custom ERROR page. I am not sure what in this file would cause the problem, but the following is the content of my .htaccess file.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress
     
    noshackles, Nov 15, 2006 IP
  2. noshackles

    noshackles Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is anyone able to get a custom 404 page working with Godaddy using .htaccess file? If so what is your magic? If not which web host will allow this - preferabbly one with good WordPress support.
     
    noshackles, Nov 17, 2006 IP
  3. adrianctn

    adrianctn Active Member

    Messages:
    64
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    98
    #3
    Hello there.

    I think your problem is that the .htaccess file in the blog directory takes precedence over all other settings. I can find no conflict between the code from this .htaccess and a custom page error code.

    I believe that you can solve your problems by adding another row to your .htaccess file, a row that creates a new rule for error pages:

    ErrorDocument 404 your_error404.html

    General syntax for this type of rule is :

    ErrorDocument (3 digit error code) (path to error page)

    Hope it helps. Let me know.

    Regards,

    Adrian
     
    adrianctn, Nov 18, 2006 IP
  4. noshackles

    noshackles Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have tried that, no luck. Godaddy has you assign an error page in their control panel. I believe causes a that conflict with the .htaccess file. Godady has been no help solving the problem. The only thing that I can figure to do is switch hosts.
     
    noshackles, Nov 21, 2006 IP
  5. bentong

    bentong Banned

    Messages:
    3,543
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try also the full path of your 404 page.
    try asmallorange, hostgator or polurnet..
     
    bentong, Nov 23, 2006 IP