Handled the context root issues.

Now we can use /home or /?page=home as urls