WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] RewriteCond: NoCase option for non-regex pattern '-f (6 posts)

  1. illegalprelude
    Member
    Posted 2 years ago #

    Hey everyone. I'm checking my MAIN error_log: and I'm getting the following show up nearly 50 times:

    [Sat Feb 18 22:47:05 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

    My Google-Fu has given me nothing. Any ideas?

  2. Andrei Olsen
    Member
    Posted 2 years ago #

    Do you have [NC] flag on that line with -f in your .htaccess? If so, remove it.

  3. illegalprelude
    Member
    Posted 2 years ago #

    Nope. I read somewhere to change things to the following:

    1 RewriteCond %{REQUEST_FILENAME} -f
    2
    3 RewriteRule "." - [skip=100]
    4
    5 RewriteCond %{REQUEST_FILENAME} -d
    6
    7 RewriteRule "." - [skip=100]

    And I've done this yet I still get the same error...

  4. Andrei Olsen
    Member
    Posted 2 years ago #

    Isn't main error_log server's entire log file, I mean are you sure it's related to your own account?

  5. illegalprelude
    Member
    Posted 2 years ago #

    Well I've read else place that because we all share servers (BlueHost), that it could be a error from someone which is stupid. Not sure why it should show up for me and if it does, you would assume that it should somehow notify you yea?

    But in all honesty, I don't know. My site a few days ago started throttling like crazy so I'm trying to knock out every bug that I see. For all I know, this was there for the past year too, but I had never checked before.

  6. illegalprelude
    Member
    Posted 2 years ago #

    Checked with BlueHost, in their Main error_log section, if it's not highlighted in red, then it is not related to you and is related to another site on the server. Good to know this!

Topic Closed

This topic has been closed to new replies.

About this Topic