Dropping through...

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 92
Joined: 01 Dec 2012, 14:22

Dropping through...

17 Apr 2014, 13:01

I've noticed when looking at rewrite logs that files that are *not* rewritten generate much more logging traffic than ones that are.

Should I have a simple rule in place, high up in the order, that simply says: "If the file exists, serve it as requested"?

And if so, what's the best way to craft it?

Would this work?

Code: Select all
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L,NC,NS,QSA]

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Dropping through...

17 Apr 2014, 17:12

ChickPea,

I'm afraid you're the amount of logging should not bother you. Logging is a debugging feature that should be OFF most of the time, unless you're troubleshooting or tweaking your rules.
The rule you;re using is correct, depending on circumstances it might be more elegant, but with the amount of times we have worked with you, it's hard to remember everything.

Regards

User avatar
Posts: 92
Joined: 01 Dec 2012, 14:22

Re: Dropping through...

22 Apr 2014, 15:58

Trouble is, we *are* debugging/tweaking a lot of the time. We seem to be constantly fighting dodgy links that Google dredges up from who knows where and then uses to penalise the site. :(

So anything that removes a lot of irrelevant clutter from the logs is a bonus.

I'll try it as coded, and quickly turn off if it produces bad results.

User avatar
Posts: 92
Joined: 01 Dec 2012, 14:22

Re: Dropping through...

22 Apr 2014, 16:05

At first glance, it seems to be quicker rendering pages.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 13 guests