• I’m not sure if I am asking this in the correct way but anyone with a multisite set-up must have addressed this issue.

    I have 2 domains aaa.co.uk and bbb.co.uk

    I have set-up bbb.co.uk as a aaa.co.uk/bbb

    When I go to bbb.co.uk, the browser address bar shows aaa.co.uk/bbb

    Can I get it to display bbb.co.uk ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you have a frame, image, or form with name=”URL” then this property will be shadowed on the document object and your code will break. In that case, document.URL will refer to the DOM node instead. Better to use properties of the global object as in window.location.href

    Thread Starter Mike Bennett

    (@mike-bennett)

    It is not a reference to the DOM that is the problem. When I enter bbb.co.uk in the browser address bar the .htaccess rewrites this as aaa.co.uk/bbb and as a consequence, aaa.co.uk/bbb is displayed in the browser (which is what I would expect under normal circumstances, however I have installed WordPress MU Domain Mapping and set up aaa.co.uk as the primary site and added a mapping for bbb.co.uk to aaa.co.uk/bbb.

    Before getting into the technical part of this, the simple question is – Can you set up a multi site installation where entering aaa.co.uk in the browser leaves aaa.co.uk in the address bar and if you enter bbb.co.uk, the address bar shows bbb.co.uk and not aaa.co.uk/bbb

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I show the correct URL in the browser?’ is closed to new replies.