Revert "removing rewrite condition in front_controller rule"

This reverts commit 37d403512d7a282b427f47c808a0fa5cc3d1f591.