1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I create/edit .htaccess file?

Discussion in 'Black Hat SEO' started by mp gamer, Jun 24, 2009.

  1. mp gamer

    mp gamer Registered Member

    Joined:
    May 19, 2009
    Messages:
    55
    Likes Received:
    9
    Sorry newbie here again...

    I have a wordpress blog hosted on 000webhosting,...

    i looked in the root directory via FTP, but I don't see a .htaccess file..

    so i figure that means I have to create one. how do i do this?


    Thanks!
     
  2. fblanchet

    fblanchet Newbie

    Joined:
    Apr 5, 2009
    Messages:
    14
    Likes Received:
    23
    You can simply use notepad to create this type of file and save it as ".htaccess"

    now i'm not sure about the actual content of the file, because it all depends what type of script or server you are running.

    Sometimes you can leave it blank and make it writable and Wordpress automatically insert the proper content.
     
    • Thanks Thanks x 1
  3. ThePost

    ThePost Registered Member

    Joined:
    Jun 10, 2009
    Messages:
    71
    Likes Received:
    11
    Some ftp programs hide the .htaccess files by default, so check your settings as it might be there.

    If not, it;s really just a special text file so you can create it on your pc and upload it. (My windows beeotches when I try to create a .htaccess file on my hard drive, so when I need to make a new one I just create a htaccess.txt file and then rename it on the server.)
     
    • Thanks Thanks x 1
  4. mp gamer

    mp gamer Registered Member

    Joined:
    May 19, 2009
    Messages:
    55
    Likes Received:
    9
    thanks fellas.

    what permissions do i give the file?

    777? 775? 644?
     
  5. fblanchet

    fblanchet Newbie

    Joined:
    Apr 5, 2009
    Messages:
    14
    Likes Received:
    23
    usually 644...
     
  6. toptop

    toptop Newbie

    Joined:
    May 25, 2009
    Messages:
    47
    Likes Received:
    16
    another little trick is The way i use is i edit it when ive uploaded all the files to my Hosting root either main or subdomain, this was a problem for me years ago i could not see or edit any htaccess file i uploaded, this is because in the normal root it whats called a hidden file, Solve this simply by changing your cpanel look in (change style) usually at the top of the cpanel, which you can change back later if you want,change it to v or the full name v3 depending on what cpanel you have, then go to the file manager then Document root for - your domain- you should see it there in your domain file list. highlight, edit, save, (you can edit, write, pemissions, ect. simple as abc 123) hope this helps bud,:cool:
     
    Last edited: Jun 24, 2009