Results 1 to 4 of 4

Thread: hosting content outside Contao on the same domain

  1. #1
    User
    Join Date
    02-01-10.
    Posts
    111

    Default hosting content outside Contao on the same domain

    Happy almost New Year :-)!
    I currently host accessibility.umn.edu domain and manage it with Contao. I would like to create a URL: "accessibility.umn.edu/tutorials" and have it point to html files in the /tutorials folder on the webserver and not have it be managed by Contao. What is the best way to accomplish this? I think I may have to modify the webserver config file. Any suggestions on how to accomplish this? The webserver is running on Apache and the current config looks like this.

    ######
    # accessibility.umn.edu
    ######
    <VirtualHost 134.84.231.67:80>
    DocumentRoot /swadm/web/ac
    <Directory /swadm/web/ac>
    AllowOverride All
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
    </Directory>
    ServerName accessibility.umn.edu
    ErrorLog /swadm/web/log/accessibility_error.log
    </VirtualHost>

    Thank you!

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    I think I would try to change the .htaccess by disabling the rewrite process for this specific folder.
    Last edited by Andreas; 12/29/2015 at 12:21.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default

    Hi Tõnu,

    If you use the default .htaccess file of Contao 3.5, then files and folders that actually exist on your webserver are not rewritten to Contao.

    I think these are the relevant lines: https://github.com/contao/core/blob/...ault#L263-L264
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  4. #4
    User
    Join Date
    02-01-10.
    Posts
    111

    Default

    Thanks Andreas! I had placed the /tutorials folder outside my contao root folder. Once I moved the tutorials folder into the contao root folder, the rewrite rules took effect and all worked. Perfect!

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
  •