Page 1 of 1

Problem in modifying htaccess file

Posted: Wed Nov 12, 2008 8:51 am
by yaguser
Hello,
I want to modify htaccess file to handle 404 error. I have write down code for that too something like "ErrorDocument 404 /404.php".

I save file and upload on linux server but it is not allowing me to modify file. I have give rights that is 777 full rights still no change it allow me to made.
I have delete file from cell command list and then upload my modified htacess file still it create the old file i mean file that looks like old file.

I have now no idea what to do..I am basically new to php.
Please help me out.How to modify the file or any other way to handle 404 error.

Thanks

Re: Problem in modifying htaccess file

Posted: Wed Nov 12, 2008 10:42 am
by infolock
I am not trying to be rude here, but this will probably help more than I can explain. Go to this link and you'll see a huge list of "howtos" for google. Pick any of them, as I went through a few and they're all great resources and step-by-steps. If you still need help, ask.

However, if you've tried this and are still getting the issue, do an "ls -al" on the directory where you are putting the .htaccess file. Is the GROUP and OWNER of the directory/other files the same as the .htaccess file? Also, is this your own personal apache server? if not, do they even allow you to use .htaccess files?

Hope this helps.

Re: Problem in modifying htaccess file

Posted: Thu Nov 13, 2008 3:38 am
by yaguser
Hi,

:( :(
Well i have done googling abt what i need, problem is i am not able to overwirte .htaccess file. It always add old file only.New one i am not able to see there which contain my code in it.

Also thanks for not being rude in reply.

Any help for that one? I am root user. Still have this issue.

Thanks

Re: Problem in modifying htaccess file

Posted: Thu Nov 13, 2008 4:12 am
by Eran
What FTP client are you using? Try flashFXP, it is very good in allowing operations most clients don't.

Re: Problem in modifying htaccess file

Posted: Thu Nov 13, 2008 4:30 am
by yaguser
Hello,

The issue is resolved. The problem is in windows and Linux. I was modifying file on windows machine and then uploading on Linux machine which is not allowing me to modify file.
I have done it via mv command and rename file and overwrite old file.

Thanks to all of u for your feedbacks....


Thanks