add two mode "portal" and "config"
change uri
add template path
add mode to htaccess