Your .htaccess file should be in the same directory as your WP install.
http://codex.ww.wp.xz.cn/Using_Permalinks#Where.27s_my_.htaccess_file.3F
Sorry I had read another post that said it should be where your index.php is.
But, I tried putting this in my wordpress install directory. wordpress still doesn’t automatically update .htacess
Another possible clue:
under Manage–>files
it thinks that .htaccess and the main template (index.php) don’t exist.
They clearly do, they are visible by ftp, shell, and most of all the website works.
I never use Manage > files.
But if you have to move the .htaccess file I’d start with a clean one in the WP root directory, make it writable and let WP to write the rules into it.
If you have WP installed in a subdirectory, but your “short and sweet” index is at the root of your site – then according to some gurus around here you need the .htaccess in both directories!
See this Codex page, especially #7. under “Giving WordPress Its Own Directory”
Hm, I’ve tried it in the root directory, the wordpress directory, and now in both directories.
permalinks only work when .htaccess is in the root directory and in both directories. However, wordpress won’t automatically update .htaccess regardless (even with permissions set to 666 for both files).
I may just have to be stuck with manually updating .htaccess when I add pages.
I’m having the same problem. This might shed some light over it; the automatic rewriting used to work just fine when i hosted my testsite as http://mydomain.org/wordpress. But then i instructed apache to serve wordpress at the root, so now my site is http://moydomain.org. Then the automatic rewriting stopped, although .htaccess still works fine if I add my own rules.
moshu’s suggestion sounds the best. I saw this a long time ago on these forums and it might work for 1.5:
Creat new blank .htaccess file on desktop, FTP to site (root directory of WP install)
Change CHMOD permissions to 777. Open Admin > Options > Permalinks and set permalinks preferences. WP will (should) write to the .htaccess file.
Change permisions 644. Don’t ever touch again.
I have the same issue as travisj2002. I also have to manually update htaccess. I have tried all above suggestions and none work for me either
Maybe a bug???
I have had this issue since version 1.2. My theory: when the install is in a subdirectory, WordPress doesn’t know to look upwards in the file structure for the .htaccess file. That’s why it says it doesn’t exist.
For example: ../ for the path instead of ./ or just /
So it might be an issue with one of the functions in the /includes area.
I tried the suggestions above and still no luck – I am editing the .htaccess file by hand each time now.
If you have wordpess installed at example.com – you need the .htaccess there, i.e. in the root folder of your site.
If you have WP installed in example.com/blog – put the .htaccess file in /blog directory.
dude! this is a dreamhost issue, and there’s a hack/fix:
http://trac.ww.wp.xz.cn/ticket/1616