Not sure if this helps:

in view source on the url /dev1 main page displays:

<base href="http://mydomain.com/dev1/" />

next url /dev1 page displays

<base href="http://mydomain.com/" />

then the url changes to mydomain.com