• Every time I try and edit my .htaccess file by either appending it or creating a new one my ftp client forbids its upload stating “permission denied”.

    How can I add a simple 404 redirect line to my website then?

Viewing 5 replies - 1 through 5 (of 5 total)
  • if you have cpanel, you might be able to do it through there. Some hosts prohibit editing your .htaccess except through cpanel or similar application — some hosts prohibit it all-together.

    if you have cpanel, look for the ‘error pages’ link. you might also be able to edit it directly via the ‘final manager’ link.

    If none of those other ways work, you might want to contact your host.

    Thread Starter fofr

    (@fofr)

    I have directly edited the htaccess file on my other subdomains many times though.

    what are the current permissions of the .htaccess? 666 and above will allow editing via ftp. 644 will not, etc..

    tyy chmodding it through ftp, if you cannot chmod it through ftp, you cannot write to it through ftp. simple as that.

    and the fact that you might be able to edit other htaccess on other domains is only pertinent if the other domains exist on the same box, which isnt always the case.

    good luck.

    Thread Starter fofr

    (@fofr)

    Ahh it worked through the site editor. Thanks

    also by the way
    I think you want to edit .htaccess OUTSIDE the section that WordPress edits.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit .htaccess to add 404 statement?’ is closed to new replies.