[resolved] should htaccess be writable? (4 posts)

  1. chanzero
    Posted 9 years ago #

    should .htaccess be writable? the reason i ask is because i'm using permalinks and everything is working fine except for XDforum, which needs me to add these lines:

    RewriteRule !xdforum/ /index.php [L]
    RewriteRule ^xdforum/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?(\([^/\(\)]*\))?/? /index.php?pagename=xdforum&xdforum_action=$1&xf_id=$3&xt_id=$5&xp_id=$6&start=$8&pstart=$8 [QSA,L]

    when i add these, everything works fine, including xdforum. however, the .htaccess keeps getting rewritten somehow, reverting back to the original file, which looks like this:

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

    so my question is, if i add the xdforum lines and then make .htaccess, will it stay that way? and if so, is it a bad thing to have .htaccess not writable?

  2. vkaryl
    Posted 9 years ago #

    I don't have .htaccess writeable. Works fine.

  3. yosemite
    Posted 9 years ago #

    It is a good thing to set it to 644 (or -rw-r--r--). It should only be 'opened up' temporarily (preferably).

  4. chanzero
    Posted 9 years ago #

    thanks guys, i'll make it 644

Topic Closed

This topic has been closed to new replies.

About this Topic