navneet sharma wrote:

- About 404 error document... Make sure  filenotfound.html is in public_html
or www directory as your are using shared hosting...

- Generally in share hosting environment you are not allowed to modify
php.ini (GoDaddy allows), you can modify some property of httpd.config and
php.ini using .htaccess but again depands on server administrator's


On Mon, Dec 28, 2009 at 11:13 AM, Sudhakar <> wrote:


i have a .htaccess file in my root directory on unix hosting

following is the code in .htaccess file

ErrorDocument 404 /filenotfound.html

try removing the '/' in front of the file. I don't think the 404 file resides in the root of your filesystem.

the file filenotfound.html is also in the root directory as the htaccess

when i intentionally type a wrong url either if a misspell a file ex= or a folder ex =
to test if this is working filenotfound.html is not being called

any reason why this is happening

also the same thing with wamp on my local computer, i have a htaccess and
also the filenotfound
in d:/wamp/www however when i misspell the ulr of my localhost, i have
noticed in the status bar that the page is being redirected to and i get a 404 from this website, how
can i change this redirection

how do i access the php.ini and httpd.conf file from my cpanel, do i need
ask my hosting provider to make any changes or can i make these changes

after downloading putty and if i have wamp in d:/wamp/www how do i access
mysql from the command prompt
using putty on my local machine

please advice


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to