WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] No .htaccess file (8 posts)

  1. Kerry
    Member
    Posted 1 year ago #

    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!

  2. JungleSpace.net
    Member
    Posted 1 year ago #

    When you setup Permalinks, is there any error or it was successful?

  3. Kerry
    Member
    Posted 1 year ago #

    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?

  4. JungleSpace.net
    Member
    Posted 1 year ago #

    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.

  5. Kerry
    Member
    Posted 1 year ago #

    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?

  6. JungleSpace.net
    Member
    Posted 1 year ago #

    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.

  7. Kerry
    Member
    Posted 1 year ago #

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

  8. Kerry
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic