WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I configure my htaccess for wordpress to write to? (8 posts)

  1. MindReality
    Member
    Posted 8 years ago #

    How do I configure my htaccess for wordpress to write to?

  2. Samuel B
    moderator
    Posted 8 years ago #

    WP automatically generates .htaccess.
    Just make sure it's CHMOD 644 (permissions).

  3. MindReality
    Member
    Posted 8 years ago #

    My wordpress is stalled to my subfolder and not my public_html folder. How do I allow it to access my htaccess?

  4. Samuel B
    moderator
    Posted 8 years ago #

    Even if installed in a subfolder it will create it's own.htaccess.
    Is your not creating it?
    If not, open notepad and put in:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /subfolder/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /subfolder/index.php [L]
    </IfModule>

    # END WordPress
    change "subfolder" (2 times) to the actual name of YOUR subfolder.
    Save it as a text file and rename it to just:
    .htaccess
    Uplaod it to your subfolder and CHMOD 644.

  5. MindReality
    Member
    Posted 8 years ago #

    I did that, but wordpress still can't seem to write to it. Is the code correct?

  6. Where is your blog located? Not the WordPress files, but your actual blog. The .htaccess file in THAT folder is the one you need to allow write access to.

    http://codex.wordpress.org/Changing_File_Permissions

  7. MindReality
    Member
    Posted 8 years ago #

    I added the code to my htaccess in /public_html/:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog2/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog2/index.php [L]
    </IfModule>

    But when I update my permalink settings, it still says that my htaccess isn't writable. It is configured to 666.

  8. IIIIIIIV
    Member
    Posted 8 years ago #

    WP automatically generates .htaccess.
    Just make sure it's CHMOD 644 (permissions).

    WP can't write to it with those permissions. Needs to be 666, PHP and apache run as "nobody" which requires world-writeable permissions.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags