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
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!
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).
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):
Have you asked your host about it? Apparently, it's a really common problem so they must have seen it before. This is the best summary of fixes that I could find. It has WallaceYeung's suggestion plus a few others. http://expressionengine.com/wiki/Remove_index.php_From_URLs/
What's your .htaccess? Try the code below in your .htaccess, ErrorDocument 404 /your-404errorpage-path.php Code (markup):
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.
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.
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
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.