Lost write access to .htaccess

Status
Not open for further replies.

soulflare3

New Member
Messages
41
Reaction score
0
Points
0
I can no longer modify entries in my .htaccess file.
cPanel says unable to write to .htaccess when I try to modify it, and it won't let me fix it via FTP. Is there any way someone could fix this for me?
 

CWeb Creative

New Member
Messages
321
Reaction score
6
Points
0
Make sure you have given yourself write permissions to the file in cpanel filemanager (eg. user has the write box checked)
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
.htaccess should be 0644
public_html should be 0755 and type publichtml

Sometimes the Legacy File Manager will work when the newer File Manager does not. No idea why.

Also, via FTP, check the owner of both public_html and .htaccess. public_html should be XXXX/99 where XXXX will be your id (don't worry). .htaccess should be XXXX/YYYY with the same for all your other files. The XXXX should be the same as for public_html. YYYY should not be 99.
 

soulflare3

New Member
Messages
41
Reaction score
0
Points
0
Make sure you have given yourself write permissions to the file in cpanel filemanager (eg. user has the write box checked)

This has not changed :/ It has been checked the whole time. I don't normally modify permissions of files, so whatever they are *should* stay the same.

.htaccess should be 0644
public_html should be 0755 and type publichtml

Sometimes the Legacy File Manager will work when the newer File Manager does not. No idea why.

Also, via FTP, check the owner of both public_html and .htaccess. public_html should be XXXX/99 where XXXX will be your id (don't worry). .htaccess should be XXXX/YYYY with the same for all your other files. The XXXX should be the same as for public_html. YYYY should not be 99.

Before changing anything, perms are as follows:
.htaccess 644
public_html 750

I changed public_html to 755, but I am still having the error. I checked the owner of public_html, and see my ID/99, but when I check the owner for .htaccess within public_html it says 0/0? I do not have a way to change it to my ID via Filezilla or cPanel. :/ Any Ideas?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. Make a copy (cut/paste) of the contents of .htaccess
2. Change permissions on public_html to 777
3. Try to delete .htaccess. FTP, FileManager, and/or Legacy File Manager
4. Create new .htaccess
5. Change permissions on public_html bact to 750
 

soulflare3

New Member
Messages
41
Reaction score
0
Points
0
Thank you so much! It worked perfectly and I can now manage it from cPanel again :)
Closing topic and added rep ;)

Thanks again
 
Status
Not open for further replies.
Top