My solution was to use Redirect instead of RewriteRule. In my case,
I was doing rules such as this:
RewriteRule ^rewrite\.htm$ rewrite.html [R=permanent]
This can be just as easily written as:
Redirect permanent rewrite.htm http://www.yourwebsite.org/rewrite.html
This solution is appropriate. The clients sees the same result in both cases.
It's all pretty much the same as far as I can see from the server logs. They
both result in a 301 result (i.e. the request file is returned to the client along with a
notice that the URL has permanently moved).
However, this may not be appropriate in all cases. If your RewriteRule is quite
complex, then this is not a solution for you, and I'm sorry but I don't know how to you
help you.
If you know more, please add your comments. |