Problem in modifying htaccess file

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
yaguser
Forum Newbie
Posts: 3
Joined: Wed Nov 12, 2008 8:45 am

Problem in modifying htaccess file

Post 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
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Re: Problem in modifying htaccess file

Post 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.
yaguser
Forum Newbie
Posts: 3
Joined: Wed Nov 12, 2008 8:45 am

Re: Problem in modifying htaccess file

Post 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
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Problem in modifying htaccess file

Post by Eran »

What FTP client are you using? Try flashFXP, it is very good in allowing operations most clients don't.
yaguser
Forum Newbie
Posts: 3
Joined: Wed Nov 12, 2008 8:45 am

Re: Problem in modifying htaccess file

Post 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
Post Reply