WordPress.org

Support

Support » Installation » [Resolved] How do I configure my htaccess for wordpress to write to?

[Resolved] How do I configure my htaccess for wordpress to write to?

Viewing 7 replies - 1 through 7 (of 7 total)
  • WP automatically generates .htaccess.
    Just make sure it’s CHMOD 644 (permissions).

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

    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.

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

    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

    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.

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] How do I configure my htaccess for wordpress to write to?’ is closed to new replies.
Skip to toolbar