Fix conditional enabling of URL rewriting.