Added conditional URL behavior, renamed index.