Widget Mode

We are using the widget mode on our site. I want to do two things. One stop people from getting to the site in the installed directory for instance www.example.com/cscart.

I only want them to have access via the page the widget is on:

www.example.com/market.php (<-- widget mode installed on)

Second thing is how to I change the paths in the site map to the page the widget is on? Right now it only shows the main installed location:


[color=#000000][font=monospace][size=3]instead of [/size][/font][/color]


[color=#000000][font=monospace][size=3]Also when I go live and have the ssl enabled will it go to the secure location on the widget page?[/size][/font][/color]