Support » How-To and Troubleshooting » [Resolved] No .htaccess file

[Resolved] No .htaccess file

  • I’ve just moved to self-hosted from WP.com, and installed a security plugin (Bulletproof Security, the most popular one on the plugins page) that involves access to the .htaccess file. However, the plugin is alerting me that it can’t find the file, and indeed there isn’t an .htaccess file anywhere I can find.

    I looked here: http://codex.wordpress.org/Using_Permalinks#Fixing_.htaccess_Generation_Issues

    but the first solution seems to be aimed at problems with an existing .htaccess file, not one that doesn’t exist in the first place. I was also a little confused because the first solution said it wasn’t recommended to do it.

    I set up my permalinks to be ‘pretty’ (under Settings > Permalinks) on the first day I installed WordPress, but the file still hasn’t been created.

    Anyone have any ideas of how to create this? I have no idea what it is, just that my security plugin wants it and some other people have had similar problems without a solution I can see (http://wordpress.org/support/topic/no-htaccess-file).

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • When you setup Permalinks, is there any error or it was successful?

    It was successful; at least, it didn’t give me an error message and it’s working now. I tried moving it back to the default and then back to ‘post name’ again, but there’s still no .htaccess file.

    I did import my blog from WP.com, which seems to have taken the post permalinks I wrote there, rather than created new, automatically generated ones. Do you think that might have anything to do with it?

    If you create a new post, does the pretty permalink work?

    There’s also some host who set the .htaccess file as hidden. You might want to check with your hosting company.

    It does indeed!

    I set my FTP client (FireFTP) to see all hidden files, but I still can’t see it. I also think if it were there, the plugin would be able to find it, even if it were hidden?

    Yes it is hidden even in FTP mode. You can only see it if you have login detail for SSH.

    So you are also able to set the permalink back to default? It yes, then your plugin files probably do not have permission to edit the .htaccess file since the htaccess file resides at a higher directory level compare to the plugin.

    You might get better answer if you post at the plugin forum as the next step might get your security expose if a wrong step is taken.

    Ah, that makes sense – I’ll have a poke around there. Thank you very much for your guidance!

    For the record (for people searching for this in future), I found it! Under the first tab of the Bulletproof Security plugin page, “Security Modes”, there are buttons titled “Create default .htaccess file” and “Create secure .htaccess file” that do what they say on the tin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] No .htaccess file’ is closed to new replies.