"Error 404: Page Not Found" not displaying

Discussion in 'WordPress' started by radiant_luv, Aug 28, 2010.

  1. #1
    Greetings,

    Another issue from list. Here is my website http://inspirationsunlimited.co.in hosted with GoDaddy. Now try this URL http://inspirationsunlimited.co.in/testfile as the file/page "testfile" doesn't exist it is supposed to be redirected to 404page instead it says "No input file specified". Yes, 404 page is present in the directory.

    The same directory or wordpress in my localhost throws the 404 error page upon typing a wrong URL through.

    So, I Googled and found something says "mod rewrite" method. I would like to know is there any alternative way to achive 404 page in place. Also any light on mod rewrite code would be great. I am fairly new to wordpress and in webmastering I am still nowhere.

    Appriciate your time and help.
    Thanks
     
    radiant_luv, Aug 28, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are a lot of threads about this problem on the Wordpress forums, like this thread for example.
    But I have never dealt with this problem before so I am not game enough to suggest anything. Good luck! ;)
     
    Cash Nebula, Aug 28, 2010 IP
  3. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Thanks Nebula. In that thread there seems to be different tricks worked for different personal. I am hoping somebody exaclty pointing out what needs to be done with .htaccess file (snippet of the code need to insert/delete).
     
    radiant_luv, Aug 28, 2010 IP
  4. WallaceYeung

    WallaceYeung Notable Member

    Messages:
    3,377
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    230
    Digital Goods:
    1
    #4
    Create a .htaccess file and upload to your root wordpress directory. :)
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Code (markup):
     
    WallaceYeung, Aug 29, 2010 IP
  5. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Thanks WallaceYeung. I have used the above code and uploaded the file however still no luck. :(
     
    radiant_luv, Aug 29, 2010 IP
  6. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Cash Nebula, Aug 29, 2010 IP
  7. WallaceYeung

    WallaceYeung Notable Member

    Messages:
    3,377
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    230
    Digital Goods:
    1
    #7
    What's your .htaccess? Try the code below in your .htaccess,
    ErrorDocument 404 /your-404errorpage-path.php
    Code (markup):
     
    WallaceYeung, Aug 29, 2010 IP
  8. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #8
    This is the code
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    ErrorDocument 404 /404.php
    </IfModule>
    # END WordPress

    still not happening.
     
    radiant_luv, Aug 30, 2010 IP
  9. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #9
    I am yet to contact host. just wanted to confirm I'm not making a mistake at my end.
     
    radiant_luv, Aug 30, 2010 IP
  10. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #10
    I have an update, I have contacted host; here is what I get an responce

    I had used "http://www.inspirationsunlimited.co.in/wp-content/themes/simplefolio/404.php" in 404 behavior setting. Is that mean 404.php is not supported? and instead of 404.php there should be a .html page?

    Thanks.
     
    radiant_luv, Sep 2, 2010 IP
  11. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I found this possible solution in the Wordpress forums. Apparently, it has worked for some people but not others.

    
    ### fix para "no input file specified"
    RewriteEngine On
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    RewriteRule ^.+\.php$ /error_/thisfiledontexists
    ###
    
    Code (markup):
    Like one poster said, this problem has a confusing mix of problem and solutions. You just have to keep trying different things until something works.

    ...or until you create a security problem and the hackers "fix" the site for you :D
     
    Cash Nebula, Sep 3, 2010 IP
  12. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #12
    Thanks Nebula.

    I followed as host directed, set up a static .html page, it's working. I'm not happy though. Is that the way it works. I will be digging more for sure.
     
    radiant_luv, Sep 4, 2010 IP