Results 1 to 4 of 4

Thread: CSS and Files not loading in multi domain

  1. #1
    New user
    Join Date
    05-22-12.
    Posts
    9

    Default CSS and Files not loading in multi domain

    Hi,

    I use Contao 3.4.2. I have two websites under one Contao installation: www.example.com and home.example.com. Under Site Structure I changed the domains accordingly. At my hosting provider I changed this: home.example.com > CNAME > www.example.com

    My first site (www.example.com) works fine. And my second site also loads (home.example.com) but without my files (e.g. jpegs) and without the css. I think it has something to do with the .htaccess file but I can't figure what I'm doing wrong. Who could help me?

    Sander

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    It would help if you also post a link to both sites

  3. #3
    New user
    Join Date
    05-22-12.
    Posts
    9

    Default

    One of two domains has to be kept hidden from Google so that's why I replaced it with 'example'.

  4. #4
    New user
    Join Date
    05-22-12.
    Posts
    9

    Found the solution

    Quote Originally Posted by Spooky View Post
    It would help if you also post a link to both sites
    Hi I think I found the solution: I forgot to set the Files URL and Assets URL to www.example.com in the Site Structure Root of home.example.com. Thanks anyway.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •