• Folks,

    Is it safe to leave .htaccess at a 666 permission, or should I change it to something else? I do need it writable for akismet-worst-offenders plugin…

    Yours,

    oculos

Viewing 7 replies - 1 through 7 (of 7 total)
  • 666 is okay, 644 is better if your host supports that.

    Try 664 before using 666. Anything to avoid 666 ;’)

    Thread Starter oculos

    (@oculos)

    hehe I tried, but it seems that Akismet worst offenders’ plugin doesn’t manage to write on .htaccess if 664 is chosen… 🙁

    666 should have no problems as I’ve never seen anyone injecting .htaccess file so far. . is used to hide files and its very difficult to inject hiden files.

    webhostinguk: 777 is where you worry about injection. 666 is where you worry about people reading what’s in your .htaccess file.

    If you’re going to use 666 at least throw this in the top of your .htaccess:
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>

    This is a bit OT, but does anyone know how to use rewrite rules to have 3 domains use the same server – with 3 index.php’s in 3 different subdirectories?

    I tried this:

    Options All -Indexes
    RewriteCond %{HTTP_HOST} ^www.oldsite1.com$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^oldsite1.com$ [NC]
    RewriteRule ^(.*)$ http: //newsite.com/oldsite1/index.php
    RewriteCond %{HTTP_HOST} ^www.oldsite2.com$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^oldsite2.com$ [NC]
    RewriteRule ^(.*)$ http: //newsite.com/oldsite2/index.php
    [and so on for oldsite3, 4, etc.]

    This does not get requests to the subdirectory…

    Any suggestions appreciated!

    deko: Some might call it hijacking a thread ;’)

    More importantly I doubt anyone will see it here.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘.htaccess correct permissions’ is closed to new replies.