Fix clean URL issues with non-standard setups