.htaccess file
-
Hi
I cant find my .htaccess. Where would it be located (in the directory)?
-
In the same folder that you installed WordPress into.
I am looking in there is the file called .htaccess or something else… I was doing some research and it turns out i have to make one. How do i make one manually?
Are you sure?
First up, do you have custom permalinks turned on? If not, you won’t have an .htaccess file
Next up, are you looking using ftp? Sometimes the .htaccess file is hidden, you must show hidden files in the ftp program settings
Finally, when you activate custom permalinks, WP attempts to make a .htaccess file for you. If it cannot, you are given the code to make one yourself
You simply make a new file named .htaccess with the provided code
Voodo,
Thanks i found itBut it says it is read only. How do i edit it?
The Link says to change the permissons to 644. I did that but it still does not allow me to edit it.
Try changing the permissions to 766. If you still have problems, try 767, 775 or 777. Once .htaccess file has been updated, change the permissions back to 644 again.
File ownership is important too. If you are logging into the filesystem (FTP or otherwise) the
6in644will let you write to the file if you are the userid that owns that file.If you are not the owner (your userid) then you’ll get one of the
4‘s (if you are either a member of thegroupor just theworld) which is read-only.Check the account that you are using and confirm that the
.htaccessfile belongs to that account.Edit: Or you can just do what Esmi says while I sit in amazement as to how fast she is at responding… 😉
I tried all of the permission numbers, no luck.
should i be encoding in utf-8?
Also the eror code is : Could not open /home/pedoeemc/public_html/.htaccess for writing: Read-only file systemJan, i think i own this
You might want to check with your hosts about the file’s ownership. WP must own the file if it is to modify it.
The topic ‘.htaccess file’ is closed to new replies.