Site Redirection Error

half_lif3

Verified User
Joined
Aug 3, 2008
Messages
6
Hi,

I'm getting this when i try to add a redirection for my website. Refer the detail below.

Unable to add redirect
Details
Unable to get Lock on /home/xxx/domains/xxx.net/public_html/.htaccess

Infact there are no .htaccess under public_html and there's a .htaccess.lock created everytime i try to add a redirection from directadmin control panel.

Anyone can help?
 
First how are you viewing the files? .htaccess is a hidden file that cannot be viewed by "normal" means.
 
hi i'm using ssh to view the files there..
just duno why there's one .htaccess.lock file there..weird :confused:
 
You half way answered the question. You said you were using ssh but did not give us the command you were using. I will try to finish it for you.

Are you using

Code:
ls -l

or

Code:
ls -la
 
You can probably resolve the problem by creating an empty .htaccess file.

However it shouldn't be happening.

Jeff
 
Hello,

I vaguely recall helping someone with this error a few days back... I'm assuming it was you? I can't quite remember how it ended up..

If the issue is not resolved, just send us another email.
If it wasn't you, then I'll likely be able to figure out what I did before ;)

If possible, include your IP/root pass/admin pass, so I can duplicate the error and check the file system, as well as update the DA binaries if required.
https://www.directadmin.com/clients/safesubmit.php

John
 
Thanks for the suggestion. However it could not solve my problem.
Temporary workaround will be create redirect.php redirect the domain.

This is my first time posting in directadmin forum and really happy that ppl here are willing to help compare to plesk forum :)
 
I've got the same error and I really need to be able to modify that file throw DA, I tried creating it but it still doesn't work. I also did a chmod 777 .htaccess but it didn't do the trick...

thx in advanced.
 
well... i think i solved it, the public_html folder owner wasn't (i don't know why) the domain's owner.
 
For future searchers to this message..
The user could also be over quota..
 
Back
Top