• Resolved t01hz3

    (@t01hz3)


    I have displayed all hidden files both in the unzipped directory of WP and in the FTP root directory. However, I still can’t see the .htaccess file.

    So I logged in my blog and went to Manage > Files. Then I clicked on the “.htaccess” shown on the right of the screen.

    “Oops, no such file exists! Double check the name and try again, merci.” was what I got on the screen. The same happened to the file “my-hacks.php (legacy hacks support)”.

    I think may be there is no .htaccess on the root directory. I have already read these pages: http://codex.wordpress.org/Changing_File_Permissions#Unhide_the_hidden_files
    http://codex.wordpress.org/Using_Permalinks#Fixing_.28.htaccess.29_Generation_Issues

    These do not seem to be helpful. What I’m asking is where I can find the .htaccess. If it doesn’t exist how can I creat a .htaccess?

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • prjg

    (@iiiiiiiv)

    SSH/Telnet into your account and do ls -al at the command line in your blog’s root. You should see it then.

    To create one, create a file locally, call it whatever you want, upload it and rename it on the server to .htaccess

    You’ve not got one – you have looked in all the right places and followed all the right links. Here’s how to make it:

    Open Notepad on your machine
    Press space once
    Save the file as htaccess.txt
    Upload that file to your site. It need to go on the main directory – the same one as wp-config.php
    Next change it’s name to .htaccess
    Then change it’s permissions to 666
    Then you’ll be fine 🙂

    If you hit any problems, just post back!

    prjg

    (@iiiiiiiv)

    If you want the OP to create a blank .htaccess file Podz, why make them do that?

    ssh to account, cd to doc_root, touch .htaccess, chmod 666 .htaccess.

    Easy, no Notepad needed.

    IIIIIIIV – it assumes shell.
    I have ssh access but it scares me 🙂

    I’m also taking the view – possibly wrongly – that if someone can ssh, cd, touch and chmod then they don’t need me to tell them how to do a .htaccess.

    And like I said .. ssh is scary. No little icons, no mouse 🙂

    Thread Starter t01hz3

    (@t01hz3)

    Thanks guys. You’ve been very helpful.I’ve followed podz instructions, and the problem is solved.

    The .htaccess thing has solved the breaking customized Permalink problem as well as the photo uploading problem in this page: http://wordpress.org/support/topic/67073?replies=5

    By the way, the .htaccess is hidden and I’m using LeapFTP client, how to set to display .htaccess? I need to set the file’s permissions to 660.

    Thanks again.

    That’s a new programme on me.
    You said at the top that you had displayed all hidden files – is there not an option for that?

    Unless the people who made it can help, all I suggest is a freeware FTP client which is excellent:
    http://filezilla.sourceforge.net/

    Thread Starter t01hz3

    (@t01hz3)

    I told my friend (an ASP programmer)who’s helping me with the blog thing on MSN messenger to help me to see if .htaccess is there. What I said in the first post was the feedback from him.

    Thanks podz for helping solve the problems which had haunted me for over a week.

    I’ll try FileZilla. 🙂

    geoffe

    (@geoffe)

    Most FTP programs (and the SSH program) have an option under some sort of Settings or Preferences menu to Show hidden files. The default setting is often to hide them. If your program has a help file, you could search for options, hidden files, or some other term if you can’t find anything by exploring.

    And to save an .htaccess in Notepad, you could just save it as .htaccess so long as you change Save As Type from .txt documents to All Files, otherwise you end up with .htaccess.txt

    prjg

    (@iiiiiiiv)

    or save it in quotes: “.htaccess”

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Where’s .htaccess file? Already unhiden the hidden’ is closed to new replies.